@gofynd/fdk-client-javascript 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/documentation/application/CART.md +251 -251
- package/documentation/application/CATALOG.md +414 -414
- package/documentation/application/CONTENT.md +15 -1
- package/documentation/application/ORDER.md +290 -290
- package/documentation/application/PAYMENT.md +255 -255
- package/documentation/application/POSCART.md +297 -297
- package/documentation/platform/CART.md +499 -499
- package/documentation/platform/CATALOG.md +3088 -2702
- package/documentation/platform/COMPANYPROFILE.md +201 -201
- package/documentation/platform/CONTENT.md +123 -1
- package/documentation/platform/ORDER.md +1233 -1158
- package/documentation/platform/PARTNER.md +7 -7
- package/documentation/platform/PAYMENT.md +83 -83
- package/package.json +1 -1
- package/sdk/application/ApplicationConfig.js +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +619 -108
- package/sdk/application/Cart/CartApplicationModel.d.ts +7 -7
- package/sdk/application/Cart/CartApplicationModel.js +335 -335
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +1 -1
- package/sdk/application/Catalog/CatalogApplicationClient.js +730 -134
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +21 -21
- package/sdk/application/Catalog/CatalogApplicationModel.js +547 -547
- package/sdk/application/Common/CommonApplicationClient.js +48 -8
- package/sdk/application/Communication/CommunicationApplicationClient.js +75 -14
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +1 -1
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +392 -66
- package/sdk/application/Content/ContentApplicationClient.js +444 -76
- package/sdk/application/Content/ContentApplicationModel.d.ts +1 -0
- package/sdk/application/Content/ContentApplicationModel.js +11 -1
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +74 -12
- package/sdk/application/Lead/LeadApplicationClient.js +164 -30
- package/sdk/application/Logistic/LogisticApplicationClient.js +98 -16
- package/sdk/application/Order/OrderApplicationClient.d.ts +1 -1
- package/sdk/application/Order/OrderApplicationClient.js +287 -54
- package/sdk/application/Order/OrderApplicationModel.d.ts +19 -19
- package/sdk/application/Order/OrderApplicationModel.js +357 -357
- package/sdk/application/Payment/PaymentApplicationClient.js +961 -186
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +3 -3
- package/sdk/application/Payment/PaymentApplicationModel.js +352 -352
- package/sdk/application/PosCart/PosCartApplicationClient.js +645 -114
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +15 -15
- package/sdk/application/PosCart/PosCartApplicationModel.js +389 -389
- package/sdk/application/Rewards/RewardsApplicationClient.js +168 -28
- package/sdk/application/Share/ShareApplicationClient.js +157 -32
- package/sdk/application/Theme/ThemeApplicationClient.js +94 -16
- package/sdk/application/User/UserApplicationClient.js +806 -148
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +16 -8
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +191 -34
- package/sdk/platform/Analytics/AnalyticsPlatformClient.d.ts +8 -4
- package/sdk/platform/Analytics/AnalyticsPlatformClient.js +103 -16
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +103 -16
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +24 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +299 -54
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +34 -17
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +409 -72
- package/sdk/platform/Cart/CartPlatformModel.d.ts +35 -35
- package/sdk/platform/Cart/CartPlatformModel.js +617 -617
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +167 -114
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1562 -453
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +39 -39
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +314 -196
- package/sdk/platform/Catalog/CatalogPlatformClient.js +2459 -718
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +103 -94
- package/sdk/platform/Catalog/CatalogPlatformModel.js +2063 -1797
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +17 -15
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +95 -76
- package/sdk/platform/Common/CommonPlatformClient.d.ts +4 -2
- package/sdk/platform/Common/CommonPlatformClient.js +51 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -40
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1000 -168
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +28 -4
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +27 -14
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +335 -54
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +10 -10
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +278 -278
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +56 -28
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +702 -118
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +457 -82
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +148 -67
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1724 -284
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +7 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +4 -0
- package/sdk/platform/Content/ContentPlatformModel.js +43 -1
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +21 -10
- package/sdk/platform/Discount/DiscountPlatformClient.js +270 -44
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +8 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +102 -16
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +12 -6
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +150 -24
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +27 -14
- package/sdk/platform/Inventory/InventoryPlatformClient.js +316 -52
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +26 -13
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +311 -52
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +22 -11
- package/sdk/platform/Lead/LeadPlatformClient.js +266 -44
- package/sdk/platform/OAuthClient.js +8 -8
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +6 -3
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +78 -14
- package/sdk/platform/Order/OrderPlatformClient.d.ts +95 -43
- package/sdk/platform/Order/OrderPlatformClient.js +1062 -180
- package/sdk/platform/Order/OrderPlatformModel.d.ts +64 -60
- package/sdk/platform/Order/OrderPlatformModel.js +1481 -1425
- package/sdk/platform/Order/OrderPlatformValidator.js +5 -0
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -8
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +22 -11
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +287 -56
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +21 -11
- package/sdk/platform/Payment/PaymentPlatformClient.js +263 -48
- package/sdk/platform/Payment/PaymentPlatformModel.js +122 -122
- package/sdk/platform/PlatformApplicationClient.d.ts +2959 -2787
- package/sdk/platform/PlatformApplicationClient.js +3420 -3212
- package/sdk/platform/PlatformClient.d.ts +2959 -2787
- package/sdk/platform/PlatformClient.js +3420 -3212
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +26 -13
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +308 -54
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +8 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.js +94 -16
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +47 -23
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +571 -96
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +24 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +296 -48
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +12 -6
- package/sdk/platform/Webhook/WebhookPlatformClient.js +157 -30
- package/sdk/public/Configuration/ConfigurationPublicClient.js +51 -8
- package/sdk/public/Inventory/InventoryPublicClient.js +149 -26
- package/sdk/public/Webhook/WebhookPublicClient.js +51 -10
|
@@ -13,6 +13,7 @@ declare class Lead {
|
|
|
13
13
|
* @param {string} [arg.status] - Filter tickets on status
|
|
14
14
|
* @param {PriorityEnum} [arg.priority] - Filter tickets on priority
|
|
15
15
|
* @param {string} [arg.category] - Filter tickets on category
|
|
16
|
+
* @returns {Promise<TicketList>} - Success response
|
|
16
17
|
* @summary: Gets the list of Application level Tickets and/or ticket filters depending on query params
|
|
17
18
|
* @description: Gets the list of Application level Tickets and/or ticket filters
|
|
18
19
|
*/
|
|
@@ -23,116 +24,128 @@ declare class Lead {
|
|
|
23
24
|
status?: string;
|
|
24
25
|
priority?: PriorityEnum;
|
|
25
26
|
category?: string;
|
|
26
|
-
}): Promise<
|
|
27
|
+
}): Promise<TicketList>;
|
|
27
28
|
/**
|
|
28
29
|
* @param {Object} arg - Arg object.
|
|
29
30
|
* @param {string} arg.id - Tiket ID of the ticket to be fetched
|
|
31
|
+
* @returns {Promise<Ticket>} - Success response
|
|
30
32
|
* @summary: Retreives ticket details of a application level ticket
|
|
31
33
|
* @description: Retreives ticket details of a application level ticket with ticket ID
|
|
32
34
|
*/
|
|
33
35
|
getTicket({ id }?: {
|
|
34
36
|
id: string;
|
|
35
|
-
}): Promise<
|
|
37
|
+
}): Promise<Ticket>;
|
|
36
38
|
/**
|
|
37
39
|
* @param {Object} arg - Arg object.
|
|
38
40
|
* @param {string} arg.id - Ticket ID of ticket to be edited
|
|
39
41
|
* @param {EditTicketPayload} arg.body
|
|
42
|
+
* @returns {Promise<Ticket>} - Success response
|
|
40
43
|
* @summary: Edits ticket details of a application level ticket
|
|
41
44
|
* @description: Edits ticket details of a application level ticket such as status, priority, category, tags, attachments, assigne & ticket content changes
|
|
42
45
|
*/
|
|
43
46
|
editTicket({ id, body }?: {
|
|
44
47
|
id: string;
|
|
45
48
|
body: EditTicketPayload;
|
|
46
|
-
}): Promise<
|
|
49
|
+
}): Promise<Ticket>;
|
|
47
50
|
/**
|
|
48
51
|
* @param {Object} arg - Arg object.
|
|
49
52
|
* @param {string} arg.id - Ticket ID for which history is created
|
|
50
53
|
* @param {TicketHistoryPayload} arg.body
|
|
54
|
+
* @returns {Promise<TicketHistory>} - Success response
|
|
51
55
|
* @summary: Create history for specific application level ticket
|
|
52
56
|
* @description: Create history for specific application level ticket, this history is seen on ticket detail page, this can be comment, log or rating.
|
|
53
57
|
*/
|
|
54
58
|
createHistory({ id, body }?: {
|
|
55
59
|
id: string;
|
|
56
60
|
body: TicketHistoryPayload;
|
|
57
|
-
}): Promise<
|
|
61
|
+
}): Promise<TicketHistory>;
|
|
58
62
|
/**
|
|
59
63
|
* @param {Object} arg - Arg object.
|
|
60
64
|
* @param {string} arg.id - Ticket ID for which history is to be fetched
|
|
65
|
+
* @returns {Promise<TicketHistoryList>} - Success response
|
|
61
66
|
* @summary: Gets history list for specific application level ticket
|
|
62
67
|
* @description: Gets history list for specific application level ticket, this history is seen on ticket detail page, this can be comment, log or rating.
|
|
63
68
|
*/
|
|
64
69
|
getTicketHistory({ id }?: {
|
|
65
70
|
id: string;
|
|
66
|
-
}): Promise<
|
|
71
|
+
}): Promise<TicketHistoryList>;
|
|
67
72
|
/**
|
|
68
73
|
* @param {Object} arg - Arg object.
|
|
69
74
|
* @param {string} arg.slug - Slug of form whose response is getting submitted
|
|
75
|
+
* @returns {Promise<CustomForm>} - Success response
|
|
70
76
|
* @summary: Get specific custom form using it's slug
|
|
71
77
|
* @description: Get specific custom form using it's slug, this is used to view the form.
|
|
72
78
|
*/
|
|
73
79
|
getCustomForm({ slug }?: {
|
|
74
80
|
slug: string;
|
|
75
|
-
}): Promise<
|
|
81
|
+
}): Promise<CustomForm>;
|
|
76
82
|
/**
|
|
77
83
|
* @param {Object} arg - Arg object.
|
|
78
84
|
* @param {string} arg.slug - Slug of form whose response is getting submitted
|
|
79
85
|
* @param {EditCustomFormPayload} arg.body
|
|
86
|
+
* @returns {Promise<CustomForm>} - Success response
|
|
80
87
|
* @summary: Edit the given custom form
|
|
81
88
|
* @description: Edit the given custom form field such as adding or deleting input, assignee, title, decription, notification and polling information.
|
|
82
89
|
*/
|
|
83
90
|
editCustomForm({ slug, body }?: {
|
|
84
91
|
slug: string;
|
|
85
92
|
body: EditCustomFormPayload;
|
|
86
|
-
}): Promise<
|
|
93
|
+
}): Promise<CustomForm>;
|
|
87
94
|
/**
|
|
88
95
|
* @param {Object} arg - Arg object.
|
|
96
|
+
* @returns {Promise<CustomFormList>} - Success response
|
|
89
97
|
* @summary: Get list of custom form
|
|
90
98
|
* @description: Get list of custom form for given application
|
|
91
99
|
*/
|
|
92
|
-
getCustomForms({}?: any): Promise<
|
|
100
|
+
getCustomForms({}?: any): Promise<CustomFormList>;
|
|
93
101
|
/**
|
|
94
102
|
* @param {Object} arg - Arg object.
|
|
95
103
|
* @param {CreateCustomFormPayload} arg.body
|
|
104
|
+
* @returns {Promise<CustomForm>} - Success response
|
|
96
105
|
* @summary: Creates a new custom form
|
|
97
106
|
* @description: Creates a new custom form for given application
|
|
98
107
|
*/
|
|
99
108
|
createCustomForm({ body }?: {
|
|
100
109
|
body: CreateCustomFormPayload;
|
|
101
|
-
}): Promise<
|
|
110
|
+
}): Promise<CustomForm>;
|
|
102
111
|
/**
|
|
103
112
|
* @param {Object} arg - Arg object.
|
|
104
113
|
* @param {string} arg.uniqueName - Unique name of video room
|
|
114
|
+
* @returns {Promise<GetTokenForVideoRoomResponse>} - Success response
|
|
105
115
|
* @summary: Get Token to join a specific Video Room using it's unqiue name
|
|
106
116
|
* @description: Get Token to join a specific Video Room using it's unqiue name, this Token is your ticket to Room and also creates your identity there.
|
|
107
117
|
*/
|
|
108
118
|
getTokenForVideoRoom({ uniqueName }?: {
|
|
109
119
|
uniqueName: string;
|
|
110
|
-
}): Promise<
|
|
120
|
+
}): Promise<GetTokenForVideoRoomResponse>;
|
|
111
121
|
/**
|
|
112
122
|
* @param {Object} arg - Arg object.
|
|
113
123
|
* @param {string} arg.uniqueName - Unique name of Video Room
|
|
124
|
+
* @returns {Promise<GetParticipantsInsideVideoRoomResponse>} - Success response
|
|
114
125
|
* @summary: Get participants of a specific Video Room using it's unique name
|
|
115
126
|
* @description: Get participants of a specific Video Room using it's unique name, this can be used to check if people are already there in the room and also to show their names.
|
|
116
127
|
*/
|
|
117
128
|
getVideoParticipants({ uniqueName }?: {
|
|
118
129
|
uniqueName: string;
|
|
119
|
-
}): Promise<
|
|
130
|
+
}): Promise<GetParticipantsInsideVideoRoomResponse>;
|
|
120
131
|
/**
|
|
121
132
|
* @param {Object} arg - Arg object.
|
|
122
133
|
* @param {CreateVideoRoomPayload} arg.body
|
|
134
|
+
* @returns {Promise<CreateVideoRoomResponse>} - Success response
|
|
123
135
|
* @summary: Open a video room.
|
|
124
136
|
* @description: Open a video room.
|
|
125
137
|
*/
|
|
126
138
|
openVideoRoom({ body }?: {
|
|
127
139
|
body: CreateVideoRoomPayload;
|
|
128
|
-
}): Promise<
|
|
140
|
+
}): Promise<CreateVideoRoomResponse>;
|
|
129
141
|
/**
|
|
130
142
|
* @param {Object} arg - Arg object.
|
|
131
143
|
* @param {string} arg.uniqueName - Unique name of Video Room
|
|
144
|
+
* @returns {Promise<CloseVideoRoomResponse>} - Success response
|
|
132
145
|
* @summary: Close the video room and force all participants to leave.
|
|
133
146
|
* @description: Close the video room and force all participants to leave.
|
|
134
147
|
*/
|
|
135
148
|
closeVideoRoom({ uniqueName }?: {
|
|
136
149
|
uniqueName: string;
|
|
137
|
-
}): Promise<
|
|
150
|
+
}): Promise<CloseVideoRoomResponse>;
|
|
138
151
|
}
|