-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
5,130 additions
and
3,705 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
/notification: | ||
get: | ||
tags: | ||
- Notification Management | ||
summary: Get all user notifications | ||
description: Return all user notifications of an authenticated buyer | ||
security: | ||
- bearerAuth: [] | ||
responses: | ||
'200': | ||
description: Return all user notifications for a user | ||
'400': | ||
description: Bad Request (syntax error, incorrect input format, etc..) | ||
'401': | ||
description: Unauthorized | ||
'403': | ||
description: Forbidden (Unauthorized action) | ||
'500': | ||
description: Internal server error | ||
|
||
delete: | ||
tags: | ||
- Notification Management | ||
summary: Delete selected notifications | ||
description: Delete all selected notification for an authenticated buyer | ||
security: | ||
- bearerAuth: [] | ||
consumes: | ||
- application/json | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
notificationIds: | ||
example: "[]" | ||
responses: | ||
'200': | ||
description: Notifications deleted successfully | ||
'400': | ||
description: Bad Request (syntax error, incorrect input format, etc..) | ||
'401': | ||
description: Unauthorized | ||
'403': | ||
description: Forbidden (Unauthorized action) | ||
'404': | ||
description: Notification not found | ||
'500': | ||
description: Internal server error | ||
|
||
put: | ||
tags: | ||
- Notification Management | ||
summary: Update selected notifications | ||
description: Update selected notifications for an authenticated buyer | ||
security: | ||
- bearerAuth: [] | ||
consumes: | ||
- application/json | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
notificationIds: | ||
example: "[]" | ||
responses: | ||
'200': | ||
description: Notification updated successfully | ||
'400': | ||
description: Bad Request (syntax error, incorrect input format, etc..) | ||
'401': | ||
description: Unauthorized | ||
'403': | ||
description: Forbidden (Unauthorized action) | ||
'404': | ||
description: Notification not found | ||
'500': | ||
description: Internal server error | ||
|
||
/notification/all: | ||
delete: | ||
tags: | ||
- Notification Management | ||
summary: Delete all notifications | ||
description: Delete all notification for an authenticated buyer | ||
security: | ||
- bearerAuth: [] | ||
responses: | ||
'200': | ||
description: All notifications deleted successfully | ||
'400': | ||
description: Bad Request (syntax error, incorrect input format, etc..) | ||
'401': | ||
description: Unauthorized | ||
'403': | ||
description: Forbidden (Unauthorized action) | ||
'404': | ||
description: Notification not found | ||
'500': | ||
description: Internal server error | ||
|
||
put: | ||
tags: | ||
- Notification Management | ||
summary: Update all notifications | ||
description: Update all notifications for an authenticated buyer | ||
security: | ||
- bearerAuth: [] | ||
responses: | ||
'200': | ||
description: Notification updated successfully | ||
'400': | ||
description: Bad Request (syntax error, incorrect input format, etc..) | ||
'401': | ||
description: Unauthorized | ||
'403': | ||
description: Forbidden (Unauthorized action) | ||
'404': | ||
description: Notification not found | ||
'500': | ||
description: Internal server error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,4 +47,4 @@ export class Cart { | |
this.totalAmount = 0; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,4 +50,4 @@ export class CartItem { | |
updateTotal (): void { | ||
this.total = this.newPrice * this.quantity; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ export class Category { | |
|
||
@UpdateDateColumn() | ||
updatedAt!: Date; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,4 @@ export class Feedback { | |
|
||
@UpdateDateColumn() | ||
updatedAt!: Date; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
import { | ||
Entity, | ||
PrimaryGeneratedColumn, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,4 @@ export class OrderItem { | |
@IsNotEmpty() | ||
@IsNumber() | ||
quantity!: number; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,4 +89,4 @@ export class Product { | |
|
||
@UpdateDateColumn() | ||
updatedAt!: Date; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,4 @@ export class VendorOrderItem { | |
@IsNotEmpty() | ||
@IsNumber() | ||
'quantity'!: number; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,4 +65,4 @@ export class Coupon { | |
|
||
@UpdateDateColumn() | ||
updatedAt!: Date; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,4 +46,4 @@ export class VendorOrders { | |
|
||
@UpdateDateColumn() | ||
updatedAt!: Date; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,4 +32,4 @@ export class wishList extends BaseEntity { | |
|
||
@UpdateDateColumn() | ||
updatedAt!: Date; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.