@gofynd/fdk-client-javascript 3.0.0-beta.1 → 3.1.0-beta.1
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/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +14 -14
- package/sdk/application/Cart/CartApplicationClient.js +14 -14
- package/sdk/application/Content/ContentApplicationClient.d.ts +10 -0
- package/sdk/application/Content/ContentApplicationClient.js +53 -0
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -0
- package/sdk/application/Logistic/LogisticApplicationClient.js +136 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -12
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +46 -33
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +41 -25
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -4
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +6 -397
- package/sdk/platform/Billing/BillingPlatformClient.js +77 -3215
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +417 -3811
- package/sdk/platform/Billing/BillingPlatformModel.js +292 -2544
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +12 -451
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -483
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +34 -34
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +34 -34
- package/sdk/platform/Cart/CartPlatformModel.d.ts +363 -29
- package/sdk/platform/Cart/CartPlatformModel.js +203 -31
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +57 -57
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +220 -200
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +121 -91
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +58 -46
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +10 -51
- package/sdk/platform/Catalog/CatalogPlatformClient.js +79 -400
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +22 -228
- package/sdk/platform/Catalog/CatalogPlatformModel.js +12 -163
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +15 -61
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -65
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +4 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +10 -14
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +94 -30
- package/sdk/platform/Communication/CommunicationPlatformModel.js +110 -32
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +33 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +62 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +11 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +5 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +12 -2
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -1
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +12 -10
- package/sdk/platform/Content/ContentPlatformModel.d.ts +42 -12
- package/sdk/platform/Content/ContentPlatformModel.js +43 -13
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +28 -28
- package/sdk/platform/Finance/FinancePlatformClient.js +28 -28
- package/sdk/platform/Order/OrderPlatformClient.d.ts +21 -21
- package/sdk/platform/Order/OrderPlatformClient.js +21 -21
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1010 -80
- package/sdk/platform/Order/OrderPlatformModel.js +665 -70
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +31 -4
- package/sdk/platform/Payment/PaymentPlatformModel.js +11 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +8 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +14 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +6 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +24 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +119 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +194 -23
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +116 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +23 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +16 -0
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -0
- package/sdk/platform/Share/SharePlatformModel.js +2 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +10 -12
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +45 -49
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +10 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +12 -12
- package/sdk/public/PublicClient.d.ts +0 -2
- package/sdk/public/PublicClient.js +0 -4
- package/sdk/public/index.d.ts +0 -1
- package/sdk/public/index.js +0 -2
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -56
- package/sdk/public/Billing/BillingPublicClient.js +0 -397
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -919
- package/sdk/public/Billing/BillingPublicModel.js +0 -560
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -43
- package/sdk/public/Billing/BillingPublicValidator.js +0 -50
|
@@ -16,25 +16,21 @@ class Theme {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
* @param {ThemePlatformApplicationValidator.
|
|
20
|
-
* - Arg object
|
|
21
|
-
*
|
|
19
|
+
* @param {ThemePlatformApplicationValidator.ApplyThemeParam} arg - Arg object
|
|
22
20
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
23
21
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
24
22
|
* @returns {Promise<ThemePlatformModel.ThemesSchema>} - Success response
|
|
25
|
-
* @name
|
|
26
|
-
* @summary:
|
|
27
|
-
* @description:
|
|
23
|
+
* @name applyTheme
|
|
24
|
+
* @summary: Apply a theme
|
|
25
|
+
* @description: Change current applied theme with new draft theme. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/applyTheme/).
|
|
28
26
|
*/
|
|
29
|
-
async
|
|
30
|
-
{
|
|
27
|
+
async applyTheme(
|
|
28
|
+
{ themeId, requestHeaders } = { requestHeaders: {} },
|
|
31
29
|
{ responseHeaders } = { responseHeaders: false }
|
|
32
30
|
) {
|
|
33
|
-
const {
|
|
34
|
-
error,
|
|
35
|
-
} = ThemePlatformApplicationValidator.addThemeToApplication().validate(
|
|
31
|
+
const { error } = ThemePlatformApplicationValidator.applyTheme().validate(
|
|
36
32
|
{
|
|
37
|
-
|
|
33
|
+
themeId,
|
|
38
34
|
},
|
|
39
35
|
{ abortEarly: false, allowUnknown: true }
|
|
40
36
|
);
|
|
@@ -45,16 +41,16 @@ class Theme {
|
|
|
45
41
|
// Showing warrnings if extra unknown parameters are found
|
|
46
42
|
const {
|
|
47
43
|
error: warrning,
|
|
48
|
-
} = ThemePlatformApplicationValidator.
|
|
44
|
+
} = ThemePlatformApplicationValidator.applyTheme().validate(
|
|
49
45
|
{
|
|
50
|
-
|
|
46
|
+
themeId,
|
|
51
47
|
},
|
|
52
48
|
{ abortEarly: false, allowUnknown: false }
|
|
53
49
|
);
|
|
54
50
|
if (warrning) {
|
|
55
51
|
Logger({
|
|
56
52
|
level: "WARN",
|
|
57
|
-
message: `Parameter Validation warrnings for platform > Theme >
|
|
53
|
+
message: `Parameter Validation warrnings for platform > Theme > applyTheme \n ${warrning}`,
|
|
58
54
|
});
|
|
59
55
|
}
|
|
60
56
|
|
|
@@ -62,10 +58,10 @@ class Theme {
|
|
|
62
58
|
|
|
63
59
|
const response = await PlatformAPIClient.execute(
|
|
64
60
|
this.config,
|
|
65
|
-
"
|
|
66
|
-
`/service/platform/theme/v2.0/company/${this.config.companyId}/application/${this.applicationId}`,
|
|
61
|
+
"patch",
|
|
62
|
+
`/service/platform/theme/v2.0/company/${this.config.companyId}/application/${this.applicationId}/${themeId}/apply`,
|
|
67
63
|
query_params,
|
|
68
|
-
|
|
64
|
+
undefined,
|
|
69
65
|
requestHeaders,
|
|
70
66
|
{ responseHeaders }
|
|
71
67
|
);
|
|
@@ -88,7 +84,7 @@ class Theme {
|
|
|
88
84
|
} else {
|
|
89
85
|
Logger({
|
|
90
86
|
level: "WARN",
|
|
91
|
-
message: `Response Validation Warnings for platform > Theme >
|
|
87
|
+
message: `Response Validation Warnings for platform > Theme > applyTheme \n ${res_error}`,
|
|
92
88
|
});
|
|
93
89
|
}
|
|
94
90
|
}
|
|
@@ -97,21 +93,22 @@ class Theme {
|
|
|
97
93
|
}
|
|
98
94
|
|
|
99
95
|
/**
|
|
100
|
-
* @param {ThemePlatformApplicationValidator.
|
|
96
|
+
* @param {ThemePlatformApplicationValidator.CreatePageParam} arg - Arg object
|
|
101
97
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
102
98
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
103
|
-
* @returns {Promise<ThemePlatformModel.
|
|
104
|
-
* @name
|
|
105
|
-
* @summary:
|
|
106
|
-
* @description:
|
|
99
|
+
* @returns {Promise<ThemePlatformModel.AvailablePageSchema>} - Success response
|
|
100
|
+
* @name createPage
|
|
101
|
+
* @summary: Create theme page
|
|
102
|
+
* @description: Generate and add a new page to the selected theme of the Platform. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/createPage/).
|
|
107
103
|
*/
|
|
108
|
-
async
|
|
109
|
-
{ themeId, requestHeaders } = { requestHeaders: {} },
|
|
104
|
+
async createPage(
|
|
105
|
+
{ themeId, body, requestHeaders } = { requestHeaders: {} },
|
|
110
106
|
{ responseHeaders } = { responseHeaders: false }
|
|
111
107
|
) {
|
|
112
|
-
const { error } = ThemePlatformApplicationValidator.
|
|
108
|
+
const { error } = ThemePlatformApplicationValidator.createPage().validate(
|
|
113
109
|
{
|
|
114
110
|
themeId,
|
|
111
|
+
body,
|
|
115
112
|
},
|
|
116
113
|
{ abortEarly: false, allowUnknown: true }
|
|
117
114
|
);
|
|
@@ -122,16 +119,17 @@ class Theme {
|
|
|
122
119
|
// Showing warrnings if extra unknown parameters are found
|
|
123
120
|
const {
|
|
124
121
|
error: warrning,
|
|
125
|
-
} = ThemePlatformApplicationValidator.
|
|
122
|
+
} = ThemePlatformApplicationValidator.createPage().validate(
|
|
126
123
|
{
|
|
127
124
|
themeId,
|
|
125
|
+
body,
|
|
128
126
|
},
|
|
129
127
|
{ abortEarly: false, allowUnknown: false }
|
|
130
128
|
);
|
|
131
129
|
if (warrning) {
|
|
132
130
|
Logger({
|
|
133
131
|
level: "WARN",
|
|
134
|
-
message: `Parameter Validation warrnings for platform > Theme >
|
|
132
|
+
message: `Parameter Validation warrnings for platform > Theme > createPage \n ${warrning}`,
|
|
135
133
|
});
|
|
136
134
|
}
|
|
137
135
|
|
|
@@ -139,10 +137,10 @@ class Theme {
|
|
|
139
137
|
|
|
140
138
|
const response = await PlatformAPIClient.execute(
|
|
141
139
|
this.config,
|
|
142
|
-
"
|
|
143
|
-
`/service/platform/theme/
|
|
140
|
+
"post",
|
|
141
|
+
`/service/platform/theme/v1.0/company/${this.config.companyId}/application/${this.applicationId}/${themeId}/page`,
|
|
144
142
|
query_params,
|
|
145
|
-
|
|
143
|
+
body,
|
|
146
144
|
requestHeaders,
|
|
147
145
|
{ responseHeaders }
|
|
148
146
|
);
|
|
@@ -154,7 +152,7 @@ class Theme {
|
|
|
154
152
|
|
|
155
153
|
const {
|
|
156
154
|
error: res_error,
|
|
157
|
-
} = ThemePlatformModel.
|
|
155
|
+
} = ThemePlatformModel.AvailablePageSchema().validate(responseData, {
|
|
158
156
|
abortEarly: false,
|
|
159
157
|
allowUnknown: true,
|
|
160
158
|
});
|
|
@@ -165,7 +163,7 @@ class Theme {
|
|
|
165
163
|
} else {
|
|
166
164
|
Logger({
|
|
167
165
|
level: "WARN",
|
|
168
|
-
message: `Response Validation Warnings for platform > Theme >
|
|
166
|
+
message: `Response Validation Warnings for platform > Theme > createPage \n ${res_error}`,
|
|
169
167
|
});
|
|
170
168
|
}
|
|
171
169
|
}
|
|
@@ -174,21 +172,20 @@ class Theme {
|
|
|
174
172
|
}
|
|
175
173
|
|
|
176
174
|
/**
|
|
177
|
-
* @param {ThemePlatformApplicationValidator.
|
|
175
|
+
* @param {ThemePlatformApplicationValidator.CreateThemeParam} arg - Arg object
|
|
178
176
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
179
177
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
180
|
-
* @returns {Promise<ThemePlatformModel.
|
|
181
|
-
* @name
|
|
182
|
-
* @summary: Create theme
|
|
183
|
-
* @description:
|
|
178
|
+
* @returns {Promise<ThemePlatformModel.ThemesSchema>} - Success response
|
|
179
|
+
* @name createTheme
|
|
180
|
+
* @summary: Get Create theme
|
|
181
|
+
* @description: Creating a new theme. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/createTheme/).
|
|
184
182
|
*/
|
|
185
|
-
async
|
|
186
|
-
{
|
|
183
|
+
async createTheme(
|
|
184
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
187
185
|
{ responseHeaders } = { responseHeaders: false }
|
|
188
186
|
) {
|
|
189
|
-
const { error } = ThemePlatformApplicationValidator.
|
|
187
|
+
const { error } = ThemePlatformApplicationValidator.createTheme().validate(
|
|
190
188
|
{
|
|
191
|
-
themeId,
|
|
192
189
|
body,
|
|
193
190
|
},
|
|
194
191
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -200,9 +197,8 @@ class Theme {
|
|
|
200
197
|
// Showing warrnings if extra unknown parameters are found
|
|
201
198
|
const {
|
|
202
199
|
error: warrning,
|
|
203
|
-
} = ThemePlatformApplicationValidator.
|
|
200
|
+
} = ThemePlatformApplicationValidator.createTheme().validate(
|
|
204
201
|
{
|
|
205
|
-
themeId,
|
|
206
202
|
body,
|
|
207
203
|
},
|
|
208
204
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -210,7 +206,7 @@ class Theme {
|
|
|
210
206
|
if (warrning) {
|
|
211
207
|
Logger({
|
|
212
208
|
level: "WARN",
|
|
213
|
-
message: `Parameter Validation warrnings for platform > Theme >
|
|
209
|
+
message: `Parameter Validation warrnings for platform > Theme > createTheme \n ${warrning}`,
|
|
214
210
|
});
|
|
215
211
|
}
|
|
216
212
|
|
|
@@ -219,7 +215,7 @@ class Theme {
|
|
|
219
215
|
const response = await PlatformAPIClient.execute(
|
|
220
216
|
this.config,
|
|
221
217
|
"post",
|
|
222
|
-
`/service/platform/theme/
|
|
218
|
+
`/service/platform/theme/v2.0/company/${this.config.companyId}/application/${this.applicationId}`,
|
|
223
219
|
query_params,
|
|
224
220
|
body,
|
|
225
221
|
requestHeaders,
|
|
@@ -233,7 +229,7 @@ class Theme {
|
|
|
233
229
|
|
|
234
230
|
const {
|
|
235
231
|
error: res_error,
|
|
236
|
-
} = ThemePlatformModel.
|
|
232
|
+
} = ThemePlatformModel.ThemesSchema().validate(responseData, {
|
|
237
233
|
abortEarly: false,
|
|
238
234
|
allowUnknown: true,
|
|
239
235
|
});
|
|
@@ -244,7 +240,7 @@ class Theme {
|
|
|
244
240
|
} else {
|
|
245
241
|
Logger({
|
|
246
242
|
level: "WARN",
|
|
247
|
-
message: `Response Validation Warnings for platform > Theme >
|
|
243
|
+
message: `Response Validation Warnings for platform > Theme > createTheme \n ${res_error}`,
|
|
248
244
|
});
|
|
249
245
|
}
|
|
250
246
|
}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
export = ThemePlatformApplicationValidator;
|
|
2
|
-
/**
|
|
3
|
-
* @typedef AddThemeToApplicationParam
|
|
4
|
-
* @property {ThemePlatformModel.ThemesSchema} body
|
|
5
|
-
*/
|
|
6
2
|
/**
|
|
7
3
|
* @typedef ApplyThemeParam
|
|
8
4
|
* @property {string} themeId - The ID of the apply
|
|
@@ -12,6 +8,10 @@ export = ThemePlatformApplicationValidator;
|
|
|
12
8
|
* @property {string} themeId - ID of the theme
|
|
13
9
|
* @property {ThemePlatformModel.AvailablePageSchema} body
|
|
14
10
|
*/
|
|
11
|
+
/**
|
|
12
|
+
* @typedef CreateThemeParam
|
|
13
|
+
* @property {ThemePlatformModel.CompanyThemeReqSchema} body
|
|
14
|
+
*/
|
|
15
15
|
/**
|
|
16
16
|
* @typedef DeletePageParam
|
|
17
17
|
* @property {string} themeId - ID of the theme
|
|
@@ -90,12 +90,12 @@ export = ThemePlatformApplicationValidator;
|
|
|
90
90
|
* @property {string} themeId - The ID of the upgrade
|
|
91
91
|
*/
|
|
92
92
|
declare class ThemePlatformApplicationValidator {
|
|
93
|
-
/** @returns {AddThemeToApplicationParam} */
|
|
94
|
-
static addThemeToApplication(): AddThemeToApplicationParam;
|
|
95
93
|
/** @returns {ApplyThemeParam} */
|
|
96
94
|
static applyTheme(): ApplyThemeParam;
|
|
97
95
|
/** @returns {CreatePageParam} */
|
|
98
96
|
static createPage(): CreatePageParam;
|
|
97
|
+
/** @returns {CreateThemeParam} */
|
|
98
|
+
static createTheme(): CreateThemeParam;
|
|
99
99
|
/** @returns {DeletePageParam} */
|
|
100
100
|
static deletePage(): DeletePageParam;
|
|
101
101
|
/** @returns {DeleteThemeParam} */
|
|
@@ -140,11 +140,8 @@ declare class ThemePlatformApplicationValidator {
|
|
|
140
140
|
static upgradeTheme(): UpgradeThemeParam;
|
|
141
141
|
}
|
|
142
142
|
declare namespace ThemePlatformApplicationValidator {
|
|
143
|
-
export {
|
|
143
|
+
export { ApplyThemeParam, CreatePageParam, CreateThemeParam, DeletePageParam, DeleteThemeParam, DuplicateThemeParam, GetAllPagesParam, GetApplicationThemesParam, GetApplicationThemesCountParam, GetAppliedThemeParam, GetExtensionSectionsParam, GetFontsParam, GetFontsV2Param, GetLatestVersionOfThemeBySlugParam, GetPageParam, GetThemeByIdParam, GetThemeForPreviewParam, GetThemeLastModifiedParam, IsUpgradableParam, UpdateMultiplePagesParam, UpdatePageParam, UpdateThemeParam, UpdateThemeNameParam, UpgradeThemeParam };
|
|
144
144
|
}
|
|
145
|
-
type AddThemeToApplicationParam = {
|
|
146
|
-
body: ThemePlatformModel.ThemesSchema;
|
|
147
|
-
};
|
|
148
145
|
type ApplyThemeParam = {
|
|
149
146
|
/**
|
|
150
147
|
* - The ID of the apply
|
|
@@ -158,6 +155,9 @@ type CreatePageParam = {
|
|
|
158
155
|
themeId: string;
|
|
159
156
|
body: ThemePlatformModel.AvailablePageSchema;
|
|
160
157
|
};
|
|
158
|
+
type CreateThemeParam = {
|
|
159
|
+
body: ThemePlatformModel.CompanyThemeReqSchema;
|
|
160
|
+
};
|
|
161
161
|
type DeletePageParam = {
|
|
162
162
|
/**
|
|
163
163
|
* - ID of the theme
|
|
@@ -2,11 +2,6 @@ const Joi = require("joi");
|
|
|
2
2
|
|
|
3
3
|
const ThemePlatformModel = require("./ThemePlatformModel");
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* @typedef AddThemeToApplicationParam
|
|
7
|
-
* @property {ThemePlatformModel.ThemesSchema} body
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
5
|
/**
|
|
11
6
|
* @typedef ApplyThemeParam
|
|
12
7
|
* @property {string} themeId - The ID of the apply
|
|
@@ -18,6 +13,11 @@ const ThemePlatformModel = require("./ThemePlatformModel");
|
|
|
18
13
|
* @property {ThemePlatformModel.AvailablePageSchema} body
|
|
19
14
|
*/
|
|
20
15
|
|
|
16
|
+
/**
|
|
17
|
+
* @typedef CreateThemeParam
|
|
18
|
+
* @property {ThemePlatformModel.CompanyThemeReqSchema} body
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
21
|
/**
|
|
22
22
|
* @typedef DeletePageParam
|
|
23
23
|
* @property {string} themeId - ID of the theme
|
|
@@ -117,13 +117,6 @@ const ThemePlatformModel = require("./ThemePlatformModel");
|
|
|
117
117
|
*/
|
|
118
118
|
|
|
119
119
|
class ThemePlatformApplicationValidator {
|
|
120
|
-
/** @returns {AddThemeToApplicationParam} */
|
|
121
|
-
static addThemeToApplication() {
|
|
122
|
-
return Joi.object({
|
|
123
|
-
body: ThemePlatformModel.ThemesSchema().required(),
|
|
124
|
-
}).required();
|
|
125
|
-
}
|
|
126
|
-
|
|
127
120
|
/** @returns {ApplyThemeParam} */
|
|
128
121
|
static applyTheme() {
|
|
129
122
|
return Joi.object({
|
|
@@ -139,6 +132,13 @@ class ThemePlatformApplicationValidator {
|
|
|
139
132
|
}).required();
|
|
140
133
|
}
|
|
141
134
|
|
|
135
|
+
/** @returns {CreateThemeParam} */
|
|
136
|
+
static createTheme() {
|
|
137
|
+
return Joi.object({
|
|
138
|
+
body: ThemePlatformModel.CompanyThemeReqSchema().required(),
|
|
139
|
+
}).required();
|
|
140
|
+
}
|
|
141
|
+
|
|
142
142
|
/** @returns {DeletePageParam} */
|
|
143
143
|
static deletePage() {
|
|
144
144
|
return Joi.object({
|
|
@@ -12,7 +12,6 @@ declare class PublicClient {
|
|
|
12
12
|
*/
|
|
13
13
|
constructor(config: import("./PublicConfig"));
|
|
14
14
|
config: import("./PublicConfig");
|
|
15
|
-
billing: Billing;
|
|
16
15
|
configuration: Configuration;
|
|
17
16
|
content: Content;
|
|
18
17
|
partner: Partner;
|
|
@@ -25,7 +24,6 @@ declare class PublicClient {
|
|
|
25
24
|
*/
|
|
26
25
|
setExtraHeaders(header: object): void;
|
|
27
26
|
}
|
|
28
|
-
import Billing = require("./Billing/BillingPublicClient");
|
|
29
27
|
import Configuration = require("./Configuration/ConfigurationPublicClient");
|
|
30
28
|
import Content = require("./Content/ContentPublicClient");
|
|
31
29
|
import Partner = require("./Partner/PartnerPublicClient");
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
const Billing = require("./Billing/BillingPublicClient");
|
|
2
|
-
|
|
3
1
|
const Configuration = require("./Configuration/ConfigurationPublicClient");
|
|
4
2
|
|
|
5
3
|
const Content = require("./Content/ContentPublicClient");
|
|
@@ -24,8 +22,6 @@ class PublicClient {
|
|
|
24
22
|
constructor(config) {
|
|
25
23
|
this.config = config;
|
|
26
24
|
|
|
27
|
-
this.billing = new Billing(config);
|
|
28
|
-
|
|
29
25
|
this.configuration = new Configuration(config);
|
|
30
26
|
|
|
31
27
|
this.content = new Content(config);
|
package/sdk/public/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export const PublicConfig: typeof import("./PublicConfig");
|
|
2
2
|
export const PublicClient: typeof import("./PublicClient");
|
|
3
3
|
export namespace PublicModel {
|
|
4
|
-
const BillingPublicModel: typeof import("./Billing/BillingPublicModel");
|
|
5
4
|
const ConfigurationPublicModel: typeof import("./Configuration/ConfigurationPublicModel");
|
|
6
5
|
const ContentPublicModel: typeof import("./Content/ContentPublicModel");
|
|
7
6
|
const PartnerPublicModel: typeof import("./Partner/PartnerPublicModel");
|
package/sdk/public/index.js
CHANGED
|
@@ -2,8 +2,6 @@ module.exports = {
|
|
|
2
2
|
PublicConfig: require("./PublicConfig"),
|
|
3
3
|
PublicClient: require("./PublicClient"),
|
|
4
4
|
PublicModel: {
|
|
5
|
-
BillingPublicModel: require("./Billing/BillingPublicModel"),
|
|
6
|
-
|
|
7
5
|
ConfigurationPublicModel: require("./Configuration/ConfigurationPublicModel"),
|
|
8
6
|
|
|
9
7
|
ContentPublicModel: require("./Content/ContentPublicModel"),
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
export = Billing;
|
|
2
|
-
declare class Billing {
|
|
3
|
-
constructor(_conf: any);
|
|
4
|
-
_conf: any;
|
|
5
|
-
_relativeUrls: {
|
|
6
|
-
getPlanDetails: string;
|
|
7
|
-
getStandardPlans: string;
|
|
8
|
-
getTenureConfig: string;
|
|
9
|
-
planList: string;
|
|
10
|
-
};
|
|
11
|
-
_urls: {};
|
|
12
|
-
updateUrls(urls: any): void;
|
|
13
|
-
/**
|
|
14
|
-
* @param {BillingPublicValidator.GetPlanDetailsParam} arg - Arg object.
|
|
15
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
16
|
-
* @param {import("../PublicAPIClient").Options} - Options
|
|
17
|
-
* @returns {Promise<BillingPublicModel.PlanDetails>} - Success response
|
|
18
|
-
* @name getPlanDetails
|
|
19
|
-
* @summary: Get plan details
|
|
20
|
-
* @description: Get plan details.
|
|
21
|
-
* - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/billing/getPlanDetails/).
|
|
22
|
-
*/
|
|
23
|
-
getPlanDetails({ planId, requestHeaders }?: BillingPublicValidator.GetPlanDetailsParam, { responseHeaders }?: object): Promise<BillingPublicModel.PlanDetails>;
|
|
24
|
-
/**
|
|
25
|
-
* @param {BillingPublicValidator.GetStandardPlansParam} arg - Arg object.
|
|
26
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
27
|
-
* @param {import("../PublicAPIClient").Options} - Options
|
|
28
|
-
* @returns {Promise<BillingPublicModel.DetailList>} - Success response
|
|
29
|
-
* @name getStandardPlans
|
|
30
|
-
* @summary: Get Standard/Public Plans
|
|
31
|
-
* @description: Get Standard/Public Plans. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/billing/getStandardPlans/).
|
|
32
|
-
*/
|
|
33
|
-
getStandardPlans({ platform, requestHeaders }?: BillingPublicValidator.GetStandardPlansParam, { responseHeaders }?: object): Promise<BillingPublicModel.DetailList>;
|
|
34
|
-
/**
|
|
35
|
-
* @param {BillingPublicValidator.GetTenureConfigParam} arg - Arg object.
|
|
36
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
37
|
-
* @param {import("../PublicAPIClient").Options} - Options
|
|
38
|
-
* @returns {Promise<BillingPublicModel.TenureConfigResponse>} - Success response
|
|
39
|
-
* @name getTenureConfig
|
|
40
|
-
* @summary: Get Tenure Configuration
|
|
41
|
-
* @description: Retrieve the tenure configuration for a specific country. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/billing/getTenureConfig/).
|
|
42
|
-
*/
|
|
43
|
-
getTenureConfig({ countryCode, requestHeaders }?: BillingPublicValidator.GetTenureConfigParam, { responseHeaders }?: object): Promise<BillingPublicModel.TenureConfigResponse>;
|
|
44
|
-
/**
|
|
45
|
-
* @param {BillingPublicValidator.PlanListParam} arg - Arg object.
|
|
46
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
47
|
-
* @param {import("../PublicAPIClient").Options} - Options
|
|
48
|
-
* @returns {Promise<BillingPublicModel.PlanList[]>} - Success response
|
|
49
|
-
* @name planList
|
|
50
|
-
* @summary: Get List of all plans
|
|
51
|
-
* @description: Get List of all plans - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/billing/planList/).
|
|
52
|
-
*/
|
|
53
|
-
planList({ requestHeaders }?: any, { responseHeaders }?: object): Promise<BillingPublicModel.PlanList[]>;
|
|
54
|
-
}
|
|
55
|
-
import BillingPublicValidator = require("./BillingPublicValidator");
|
|
56
|
-
import BillingPublicModel = require("./BillingPublicModel");
|