@gofynd/fdk-client-javascript 3.24.0 → 3.26.0
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/Catalog/CatalogApplicationClient.d.ts +8 -5
- package/sdk/application/Catalog/CatalogApplicationClient.js +9 -3
- package/sdk/application/Order/OrderApplicationClient.d.ts +1 -1
- package/sdk/application/Order/OrderApplicationClient.js +4 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +2 -1
- package/sdk/partner/Theme/ThemePartnerModel.js +3 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +19 -27
- package/sdk/platform/Cart/CartPlatformModel.js +8 -18
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +2 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.js +3 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +48 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +316 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +27 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +38 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +104 -2
- package/sdk/platform/Content/ContentPlatformModel.js +91 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +18 -18
- package/sdk/platform/Order/OrderPlatformModel.js +18 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +40 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +25 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +2 -1
- package/sdk/platform/Theme/ThemePlatformModel.js +3 -0
|
@@ -574,6 +574,87 @@ class Content {
|
|
|
574
574
|
return response;
|
|
575
575
|
}
|
|
576
576
|
|
|
577
|
+
/**
|
|
578
|
+
* @param {ContentPlatformApplicationValidator.CreateAppAssociationParam} arg
|
|
579
|
+
* - Arg object
|
|
580
|
+
*
|
|
581
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
582
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
583
|
+
* @returns {Promise<ContentPlatformModel.AppAssociationRecord>} - Success response
|
|
584
|
+
* @name createAppAssociation
|
|
585
|
+
* @summary: Create app association
|
|
586
|
+
* @description: Create-only. Returns 409 if a record already exists for this application (caller should use PUT to update). 422 on shape/size violations. Body fields `ios_payload` (object|null) and `android_payload` (array|null) are both optional and independent. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/content/createAppAssociation/).
|
|
587
|
+
*/
|
|
588
|
+
async createAppAssociation(
|
|
589
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
590
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
591
|
+
) {
|
|
592
|
+
const {
|
|
593
|
+
error,
|
|
594
|
+
} = ContentPlatformApplicationValidator.createAppAssociation().validate(
|
|
595
|
+
{
|
|
596
|
+
body,
|
|
597
|
+
},
|
|
598
|
+
{ abortEarly: false, allowUnknown: true }
|
|
599
|
+
);
|
|
600
|
+
if (error) {
|
|
601
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
// Showing warrnings if extra unknown parameters are found
|
|
605
|
+
const {
|
|
606
|
+
error: warrning,
|
|
607
|
+
} = ContentPlatformApplicationValidator.createAppAssociation().validate(
|
|
608
|
+
{
|
|
609
|
+
body,
|
|
610
|
+
},
|
|
611
|
+
{ abortEarly: false, allowUnknown: false }
|
|
612
|
+
);
|
|
613
|
+
if (warrning) {
|
|
614
|
+
Logger({
|
|
615
|
+
level: "WARN",
|
|
616
|
+
message: `Parameter Validation warrnings for platform > Content > createAppAssociation \n ${warrning}`,
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
const query_params = {};
|
|
621
|
+
|
|
622
|
+
const response = await PlatformAPIClient.execute(
|
|
623
|
+
this.config,
|
|
624
|
+
"post",
|
|
625
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/app-association`,
|
|
626
|
+
query_params,
|
|
627
|
+
body,
|
|
628
|
+
requestHeaders,
|
|
629
|
+
{ responseHeaders }
|
|
630
|
+
);
|
|
631
|
+
|
|
632
|
+
let responseData = response;
|
|
633
|
+
if (responseHeaders) {
|
|
634
|
+
responseData = response[0];
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
const {
|
|
638
|
+
error: res_error,
|
|
639
|
+
} = ContentPlatformModel.AppAssociationRecord().validate(responseData, {
|
|
640
|
+
abortEarly: false,
|
|
641
|
+
allowUnknown: true,
|
|
642
|
+
});
|
|
643
|
+
|
|
644
|
+
if (res_error) {
|
|
645
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
646
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
647
|
+
} else {
|
|
648
|
+
Logger({
|
|
649
|
+
level: "WARN",
|
|
650
|
+
message: `Response Validation Warnings for platform > Content > createAppAssociation \n ${res_error}`,
|
|
651
|
+
});
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
return response;
|
|
656
|
+
}
|
|
657
|
+
|
|
577
658
|
/**
|
|
578
659
|
* @param {ContentPlatformApplicationValidator.CreateAppCustomFieldDefinitionParam} arg
|
|
579
660
|
* - Arg object
|
|
@@ -1545,6 +1626,83 @@ class Content {
|
|
|
1545
1626
|
return response;
|
|
1546
1627
|
}
|
|
1547
1628
|
|
|
1629
|
+
/**
|
|
1630
|
+
* @param {ContentPlatformApplicationValidator.DeleteAppAssociationParam} arg
|
|
1631
|
+
* - Arg object
|
|
1632
|
+
*
|
|
1633
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1634
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1635
|
+
* @returns {Promise<ContentPlatformModel.AppAssociationDeleted>} - Success response
|
|
1636
|
+
* @name deleteAppAssociation
|
|
1637
|
+
* @summary: Delete app association
|
|
1638
|
+
* @description: Remove the app-association record entirely. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/content/deleteAppAssociation/).
|
|
1639
|
+
*/
|
|
1640
|
+
async deleteAppAssociation(
|
|
1641
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
1642
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1643
|
+
) {
|
|
1644
|
+
const {
|
|
1645
|
+
error,
|
|
1646
|
+
} = ContentPlatformApplicationValidator.deleteAppAssociation().validate(
|
|
1647
|
+
{},
|
|
1648
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1649
|
+
);
|
|
1650
|
+
if (error) {
|
|
1651
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1655
|
+
const {
|
|
1656
|
+
error: warrning,
|
|
1657
|
+
} = ContentPlatformApplicationValidator.deleteAppAssociation().validate(
|
|
1658
|
+
{},
|
|
1659
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1660
|
+
);
|
|
1661
|
+
if (warrning) {
|
|
1662
|
+
Logger({
|
|
1663
|
+
level: "WARN",
|
|
1664
|
+
message: `Parameter Validation warrnings for platform > Content > deleteAppAssociation \n ${warrning}`,
|
|
1665
|
+
});
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
const query_params = {};
|
|
1669
|
+
|
|
1670
|
+
const response = await PlatformAPIClient.execute(
|
|
1671
|
+
this.config,
|
|
1672
|
+
"delete",
|
|
1673
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/app-association`,
|
|
1674
|
+
query_params,
|
|
1675
|
+
undefined,
|
|
1676
|
+
requestHeaders,
|
|
1677
|
+
{ responseHeaders }
|
|
1678
|
+
);
|
|
1679
|
+
|
|
1680
|
+
let responseData = response;
|
|
1681
|
+
if (responseHeaders) {
|
|
1682
|
+
responseData = response[0];
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
const {
|
|
1686
|
+
error: res_error,
|
|
1687
|
+
} = ContentPlatformModel.AppAssociationDeleted().validate(responseData, {
|
|
1688
|
+
abortEarly: false,
|
|
1689
|
+
allowUnknown: true,
|
|
1690
|
+
});
|
|
1691
|
+
|
|
1692
|
+
if (res_error) {
|
|
1693
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1694
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1695
|
+
} else {
|
|
1696
|
+
Logger({
|
|
1697
|
+
level: "WARN",
|
|
1698
|
+
message: `Response Validation Warnings for platform > Content > deleteAppAssociation \n ${res_error}`,
|
|
1699
|
+
});
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
return response;
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1548
1706
|
/**
|
|
1549
1707
|
* @param {ContentPlatformApplicationValidator.DeleteAppCustomFieldDefinitionBySlugParam} arg
|
|
1550
1708
|
* - Arg object
|
|
@@ -3251,6 +3409,83 @@ class Content {
|
|
|
3251
3409
|
return response;
|
|
3252
3410
|
}
|
|
3253
3411
|
|
|
3412
|
+
/**
|
|
3413
|
+
* @param {ContentPlatformApplicationValidator.GetAppAssociationParam} arg
|
|
3414
|
+
* - Arg object
|
|
3415
|
+
*
|
|
3416
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3417
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3418
|
+
* @returns {Promise<ContentPlatformModel.AppAssociationRecord>} - Success response
|
|
3419
|
+
* @name getAppAssociation
|
|
3420
|
+
* @summary: Get app association
|
|
3421
|
+
* @description: Fetch the app-association configuration (Apple AASA + Google Asset Links payloads) for this application. Returns 404 if no record exists. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/content/getAppAssociation/).
|
|
3422
|
+
*/
|
|
3423
|
+
async getAppAssociation(
|
|
3424
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
3425
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
3426
|
+
) {
|
|
3427
|
+
const {
|
|
3428
|
+
error,
|
|
3429
|
+
} = ContentPlatformApplicationValidator.getAppAssociation().validate(
|
|
3430
|
+
{},
|
|
3431
|
+
{ abortEarly: false, allowUnknown: true }
|
|
3432
|
+
);
|
|
3433
|
+
if (error) {
|
|
3434
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
3435
|
+
}
|
|
3436
|
+
|
|
3437
|
+
// Showing warrnings if extra unknown parameters are found
|
|
3438
|
+
const {
|
|
3439
|
+
error: warrning,
|
|
3440
|
+
} = ContentPlatformApplicationValidator.getAppAssociation().validate(
|
|
3441
|
+
{},
|
|
3442
|
+
{ abortEarly: false, allowUnknown: false }
|
|
3443
|
+
);
|
|
3444
|
+
if (warrning) {
|
|
3445
|
+
Logger({
|
|
3446
|
+
level: "WARN",
|
|
3447
|
+
message: `Parameter Validation warrnings for platform > Content > getAppAssociation \n ${warrning}`,
|
|
3448
|
+
});
|
|
3449
|
+
}
|
|
3450
|
+
|
|
3451
|
+
const query_params = {};
|
|
3452
|
+
|
|
3453
|
+
const response = await PlatformAPIClient.execute(
|
|
3454
|
+
this.config,
|
|
3455
|
+
"get",
|
|
3456
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/app-association`,
|
|
3457
|
+
query_params,
|
|
3458
|
+
undefined,
|
|
3459
|
+
requestHeaders,
|
|
3460
|
+
{ responseHeaders }
|
|
3461
|
+
);
|
|
3462
|
+
|
|
3463
|
+
let responseData = response;
|
|
3464
|
+
if (responseHeaders) {
|
|
3465
|
+
responseData = response[0];
|
|
3466
|
+
}
|
|
3467
|
+
|
|
3468
|
+
const {
|
|
3469
|
+
error: res_error,
|
|
3470
|
+
} = ContentPlatformModel.AppAssociationRecord().validate(responseData, {
|
|
3471
|
+
abortEarly: false,
|
|
3472
|
+
allowUnknown: true,
|
|
3473
|
+
});
|
|
3474
|
+
|
|
3475
|
+
if (res_error) {
|
|
3476
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3477
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3478
|
+
} else {
|
|
3479
|
+
Logger({
|
|
3480
|
+
level: "WARN",
|
|
3481
|
+
message: `Response Validation Warnings for platform > Content > getAppAssociation \n ${res_error}`,
|
|
3482
|
+
});
|
|
3483
|
+
}
|
|
3484
|
+
}
|
|
3485
|
+
|
|
3486
|
+
return response;
|
|
3487
|
+
}
|
|
3488
|
+
|
|
3254
3489
|
/**
|
|
3255
3490
|
* @param {ContentPlatformApplicationValidator.GetAppCustomFieldDefinitionByResourceParam} arg
|
|
3256
3491
|
* - Arg object
|
|
@@ -7239,6 +7474,87 @@ class Content {
|
|
|
7239
7474
|
return response;
|
|
7240
7475
|
}
|
|
7241
7476
|
|
|
7477
|
+
/**
|
|
7478
|
+
* @param {ContentPlatformApplicationValidator.UpdateAppAssociationParam} arg
|
|
7479
|
+
* - Arg object
|
|
7480
|
+
*
|
|
7481
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
7482
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
7483
|
+
* @returns {Promise<ContentPlatformModel.AppAssociationRecord>} - Success response
|
|
7484
|
+
* @name updateAppAssociation
|
|
7485
|
+
* @summary: Update app association
|
|
7486
|
+
* @description: Update-only. Returns 404 if no record exists (caller should use POST to create). Partial-update semantics: keys present are written (explicit null clears the field); keys absent are no-op. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/content/updateAppAssociation/).
|
|
7487
|
+
*/
|
|
7488
|
+
async updateAppAssociation(
|
|
7489
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
7490
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
7491
|
+
) {
|
|
7492
|
+
const {
|
|
7493
|
+
error,
|
|
7494
|
+
} = ContentPlatformApplicationValidator.updateAppAssociation().validate(
|
|
7495
|
+
{
|
|
7496
|
+
body,
|
|
7497
|
+
},
|
|
7498
|
+
{ abortEarly: false, allowUnknown: true }
|
|
7499
|
+
);
|
|
7500
|
+
if (error) {
|
|
7501
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
7502
|
+
}
|
|
7503
|
+
|
|
7504
|
+
// Showing warrnings if extra unknown parameters are found
|
|
7505
|
+
const {
|
|
7506
|
+
error: warrning,
|
|
7507
|
+
} = ContentPlatformApplicationValidator.updateAppAssociation().validate(
|
|
7508
|
+
{
|
|
7509
|
+
body,
|
|
7510
|
+
},
|
|
7511
|
+
{ abortEarly: false, allowUnknown: false }
|
|
7512
|
+
);
|
|
7513
|
+
if (warrning) {
|
|
7514
|
+
Logger({
|
|
7515
|
+
level: "WARN",
|
|
7516
|
+
message: `Parameter Validation warrnings for platform > Content > updateAppAssociation \n ${warrning}`,
|
|
7517
|
+
});
|
|
7518
|
+
}
|
|
7519
|
+
|
|
7520
|
+
const query_params = {};
|
|
7521
|
+
|
|
7522
|
+
const response = await PlatformAPIClient.execute(
|
|
7523
|
+
this.config,
|
|
7524
|
+
"put",
|
|
7525
|
+
`/service/platform/content/v1.0/company/${this.config.companyId}/application/${this.applicationId}/app-association`,
|
|
7526
|
+
query_params,
|
|
7527
|
+
body,
|
|
7528
|
+
requestHeaders,
|
|
7529
|
+
{ responseHeaders }
|
|
7530
|
+
);
|
|
7531
|
+
|
|
7532
|
+
let responseData = response;
|
|
7533
|
+
if (responseHeaders) {
|
|
7534
|
+
responseData = response[0];
|
|
7535
|
+
}
|
|
7536
|
+
|
|
7537
|
+
const {
|
|
7538
|
+
error: res_error,
|
|
7539
|
+
} = ContentPlatformModel.AppAssociationRecord().validate(responseData, {
|
|
7540
|
+
abortEarly: false,
|
|
7541
|
+
allowUnknown: true,
|
|
7542
|
+
});
|
|
7543
|
+
|
|
7544
|
+
if (res_error) {
|
|
7545
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
7546
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
7547
|
+
} else {
|
|
7548
|
+
Logger({
|
|
7549
|
+
level: "WARN",
|
|
7550
|
+
message: `Response Validation Warnings for platform > Content > updateAppAssociation \n ${res_error}`,
|
|
7551
|
+
});
|
|
7552
|
+
}
|
|
7553
|
+
}
|
|
7554
|
+
|
|
7555
|
+
return response;
|
|
7556
|
+
}
|
|
7557
|
+
|
|
7242
7558
|
/**
|
|
7243
7559
|
* @param {ContentPlatformApplicationValidator.UpdateAppCustomFieldByResourceSlugParam} arg
|
|
7244
7560
|
* - Arg object
|
|
@@ -28,6 +28,10 @@ export = ContentPlatformApplicationValidator;
|
|
|
28
28
|
* @typedef CreateAnnouncementParam
|
|
29
29
|
* @property {ContentPlatformModel.AdminAnnouncementSchema} body
|
|
30
30
|
*/
|
|
31
|
+
/**
|
|
32
|
+
* @typedef CreateAppAssociationParam
|
|
33
|
+
* @property {ContentPlatformModel.AppAssociationWriteBody} body
|
|
34
|
+
*/
|
|
31
35
|
/**
|
|
32
36
|
* @typedef CreateAppCustomFieldDefinitionParam
|
|
33
37
|
* @property {string} resource
|
|
@@ -78,6 +82,7 @@ export = ContentPlatformApplicationValidator;
|
|
|
78
82
|
* @typedef DeleteAnnouncementParam
|
|
79
83
|
* @property {string} announcementId - ID allotted to the announcement.
|
|
80
84
|
*/
|
|
85
|
+
/** @typedef DeleteAppAssociationParam */
|
|
81
86
|
/**
|
|
82
87
|
* @typedef DeleteAppCustomFieldDefinitionBySlugParam
|
|
83
88
|
* @property {string} slug
|
|
@@ -177,6 +182,7 @@ export = ContentPlatformApplicationValidator;
|
|
|
177
182
|
* @property {number} [pageSize] - The number of items to retrieve in each page.
|
|
178
183
|
* Default value is 10.
|
|
179
184
|
*/
|
|
185
|
+
/** @typedef GetAppAssociationParam */
|
|
180
186
|
/**
|
|
181
187
|
* @typedef GetAppCustomFieldDefinitionByResourceParam
|
|
182
188
|
* @property {string} pageNo
|
|
@@ -405,6 +411,10 @@ export = ContentPlatformApplicationValidator;
|
|
|
405
411
|
* @property {string} announcementId - ID allotted to the announcement.
|
|
406
412
|
* @property {ContentPlatformModel.ScheduleSchema} body
|
|
407
413
|
*/
|
|
414
|
+
/**
|
|
415
|
+
* @typedef UpdateAppAssociationParam
|
|
416
|
+
* @property {ContentPlatformModel.AppAssociationWriteBody} body
|
|
417
|
+
*/
|
|
408
418
|
/**
|
|
409
419
|
* @typedef UpdateAppCustomFieldByResourceSlugParam
|
|
410
420
|
* @property {string} resource
|
|
@@ -517,6 +527,8 @@ declare class ContentPlatformApplicationValidator {
|
|
|
517
527
|
static bulkUnPublishApplicationLanguage(): BulkUnPublishApplicationLanguageParam;
|
|
518
528
|
/** @returns {CreateAnnouncementParam} */
|
|
519
529
|
static createAnnouncement(): CreateAnnouncementParam;
|
|
530
|
+
/** @returns {CreateAppAssociationParam} */
|
|
531
|
+
static createAppAssociation(): CreateAppAssociationParam;
|
|
520
532
|
/** @returns {CreateAppCustomFieldDefinitionParam} */
|
|
521
533
|
static createAppCustomFieldDefinition(): CreateAppCustomFieldDefinitionParam;
|
|
522
534
|
/** @returns {CreateAppCustomObjectBySlugParam} */
|
|
@@ -541,6 +553,8 @@ declare class ContentPlatformApplicationValidator {
|
|
|
541
553
|
static createTranslateUILabels(): CreateTranslateUILabelsParam;
|
|
542
554
|
/** @returns {DeleteAnnouncementParam} */
|
|
543
555
|
static deleteAnnouncement(): DeleteAnnouncementParam;
|
|
556
|
+
/** @returns {DeleteAppAssociationParam} */
|
|
557
|
+
static deleteAppAssociation(): any;
|
|
544
558
|
/** @returns {DeleteAppCustomFieldDefinitionBySlugParam} */
|
|
545
559
|
static deleteAppCustomFieldDefinitionBySlug(): DeleteAppCustomFieldDefinitionBySlugParam;
|
|
546
560
|
/** @returns {DeleteAppCustomObjectBySlugParam} */
|
|
@@ -583,6 +597,8 @@ declare class ContentPlatformApplicationValidator {
|
|
|
583
597
|
static getAnnouncementById(): GetAnnouncementByIdParam;
|
|
584
598
|
/** @returns {GetAnnouncementsListParam} */
|
|
585
599
|
static getAnnouncementsList(): GetAnnouncementsListParam;
|
|
600
|
+
/** @returns {GetAppAssociationParam} */
|
|
601
|
+
static getAppAssociation(): any;
|
|
586
602
|
/** @returns {GetAppCustomFieldDefinitionByResourceParam} */
|
|
587
603
|
static getAppCustomFieldDefinitionByResource(): GetAppCustomFieldDefinitionByResourceParam;
|
|
588
604
|
/** @returns {GetAppCustomFieldDefinitionBySlugParam} */
|
|
@@ -679,6 +695,8 @@ declare class ContentPlatformApplicationValidator {
|
|
|
679
695
|
static updateAnnouncement(): UpdateAnnouncementParam;
|
|
680
696
|
/** @returns {UpdateAnnouncementScheduleParam} */
|
|
681
697
|
static updateAnnouncementSchedule(): UpdateAnnouncementScheduleParam;
|
|
698
|
+
/** @returns {UpdateAppAssociationParam} */
|
|
699
|
+
static updateAppAssociation(): UpdateAppAssociationParam;
|
|
682
700
|
/** @returns {UpdateAppCustomFieldByResourceSlugParam} */
|
|
683
701
|
static updateAppCustomFieldByResourceSlug(): UpdateAppCustomFieldByResourceSlugParam;
|
|
684
702
|
/** @returns {UpdateAppCustomFieldDefinitionBySlugParam} */
|
|
@@ -719,7 +737,7 @@ declare class ContentPlatformApplicationValidator {
|
|
|
719
737
|
static upsertApplicationResourceTranslationInBulk(): UpsertApplicationResourceTranslationInBulkParam;
|
|
720
738
|
}
|
|
721
739
|
declare namespace ContentPlatformApplicationValidator {
|
|
722
|
-
export { AddApplicationLanguageParam, AddDataLoaderParam, AddFaqParam, AddInjectableTagParam, AddPathRedirectionRulesParam, BulkUnPublishApplicationLanguageParam, CreateAnnouncementParam, CreateAppCustomFieldDefinitionParam, CreateAppCustomObjectBySlugParam, CreateAppCustomObjectDefinitionParam, CreateApplicationResourceTranslationParam, CreateBlogParam, CreateFaqCategoryParam, CreateLandingPageParam, CreateNavigationParam, CreatePageParam, CreateSEOMarkupSchemaParam, CreateTranslateUILabelsParam, DeleteAnnouncementParam, DeleteAppCustomFieldDefinitionBySlugParam, DeleteAppCustomObjectBySlugParam, DeleteAppCustomObjectDefinitionBySlugParam, DeleteApplicationLanguageParam, DeleteApplicationResourceTranslationParam, DeleteBlogParam, DeleteDataLoaderParam, DeleteFaqParam, DeleteFaqCategoryParam, DeleteLandingPageParam, DeleteNavigationParam, DeletePageParam, DeletePathRedirectionRulesParam, DeleteSEOMarkupSchemaParam, EditDataLoaderParam, EditInjectableTagParam, EditSEOMarkupSchemaParam, ExportAppCustomObjectEntriesBySlugParam, GenerateSEOTitleParam, GetAnnouncementByIdParam, GetAnnouncementsListParam, GetAppCustomFieldDefinitionByResourceParam, GetAppCustomFieldDefinitionBySlugParam, GetAppCustomFieldDefinitionsParam, GetAppCustomFieldTypesParam, GetAppCustomFieldsByResourceSlugParam, GetAppCustomObjectBySlugParam, GetAppCustomObjectDefinitionBySlugParam, GetAppCustomObjectDefinitionsParam, GetAppCustomObjectsBySlugParam, GetAppJobsParam, GetAppResourcesParam, GetApplicationLanguagesParam, GetApplicationResourceTranslationsParam, GetBlogBySlugParam, GetBlogsParam, GetDataLoadersParam, GetDataLoadersByServiceParam, GetDefaultNavigationsParam, GetDefaultSEOMarkupSchemaParam, GetFaqByIdOrSlugParam, GetFaqCategoriesParam, GetFaqCategoryBySlugOrIdParam, GetFaqsByCategoryIdOrSlugParam, GetInjectableTagsParam, GetLandingPagesParam, GetLegalInformationParam, GetNavigationBySlugParam, GetNavigationsParam, GetPageBySlugParam, GetPageMetaParam, GetPageSpecParam, GetPagesParam, GetPathRedirectionRuleParam, GetPathRedirectionRulesParam, GetSEOConfigurationParam, GetSEOMarkupSchemaParam, GetSEOMarkupSchemasParam, GetSupportInformationParam, GetTagsTemplateParam, GetTranslateUILabelsParam, GetTranslateUILabelsByIdParam, ImportAppCustomObjectEntriesBySlugParam, RemoveInjectableTagParam, ResetDataLoaderParam, SampleAppCustomObjectBulkEntryBySlugParam, SelectDataLoaderParam, UpdateAnnouncementParam, UpdateAnnouncementScheduleParam, UpdateAppCustomFieldByResourceSlugParam, UpdateAppCustomFieldDefinitionBySlugParam, UpdateAppCustomObjectBySlugParam, UpdateAppCustomObjectDefinitionBySlugParam, UpdateApplicationLanguageStatusParam, UpdateApplicationResourceTranslationParam, UpdateBlogParam, UpdateFaqParam, UpdateFaqCategoryParam, UpdateLandingPageParam, UpdateLegalInformationParam, UpdateNavigationParam, UpdatePageParam, UpdatePagePreviewParam, UpdatePathRedirectionRulesParam, UpdateSEOConfigurationParam, UpdateSupportInformationParam, UpdateTranslateUILabelsParam, UpsertApplicationResourceTranslationInBulkParam };
|
|
740
|
+
export { AddApplicationLanguageParam, AddDataLoaderParam, AddFaqParam, AddInjectableTagParam, AddPathRedirectionRulesParam, BulkUnPublishApplicationLanguageParam, CreateAnnouncementParam, CreateAppAssociationParam, CreateAppCustomFieldDefinitionParam, CreateAppCustomObjectBySlugParam, CreateAppCustomObjectDefinitionParam, CreateApplicationResourceTranslationParam, CreateBlogParam, CreateFaqCategoryParam, CreateLandingPageParam, CreateNavigationParam, CreatePageParam, CreateSEOMarkupSchemaParam, CreateTranslateUILabelsParam, DeleteAnnouncementParam, DeleteAppAssociationParam, DeleteAppCustomFieldDefinitionBySlugParam, DeleteAppCustomObjectBySlugParam, DeleteAppCustomObjectDefinitionBySlugParam, DeleteApplicationLanguageParam, DeleteApplicationResourceTranslationParam, DeleteBlogParam, DeleteDataLoaderParam, DeleteFaqParam, DeleteFaqCategoryParam, DeleteLandingPageParam, DeleteNavigationParam, DeletePageParam, DeletePathRedirectionRulesParam, DeleteSEOMarkupSchemaParam, EditDataLoaderParam, EditInjectableTagParam, EditSEOMarkupSchemaParam, ExportAppCustomObjectEntriesBySlugParam, GenerateSEOTitleParam, GetAnnouncementByIdParam, GetAnnouncementsListParam, GetAppAssociationParam, GetAppCustomFieldDefinitionByResourceParam, GetAppCustomFieldDefinitionBySlugParam, GetAppCustomFieldDefinitionsParam, GetAppCustomFieldTypesParam, GetAppCustomFieldsByResourceSlugParam, GetAppCustomObjectBySlugParam, GetAppCustomObjectDefinitionBySlugParam, GetAppCustomObjectDefinitionsParam, GetAppCustomObjectsBySlugParam, GetAppJobsParam, GetAppResourcesParam, GetApplicationLanguagesParam, GetApplicationResourceTranslationsParam, GetBlogBySlugParam, GetBlogsParam, GetDataLoadersParam, GetDataLoadersByServiceParam, GetDefaultNavigationsParam, GetDefaultSEOMarkupSchemaParam, GetFaqByIdOrSlugParam, GetFaqCategoriesParam, GetFaqCategoryBySlugOrIdParam, GetFaqsByCategoryIdOrSlugParam, GetInjectableTagsParam, GetLandingPagesParam, GetLegalInformationParam, GetNavigationBySlugParam, GetNavigationsParam, GetPageBySlugParam, GetPageMetaParam, GetPageSpecParam, GetPagesParam, GetPathRedirectionRuleParam, GetPathRedirectionRulesParam, GetSEOConfigurationParam, GetSEOMarkupSchemaParam, GetSEOMarkupSchemasParam, GetSupportInformationParam, GetTagsTemplateParam, GetTranslateUILabelsParam, GetTranslateUILabelsByIdParam, ImportAppCustomObjectEntriesBySlugParam, RemoveInjectableTagParam, ResetDataLoaderParam, SampleAppCustomObjectBulkEntryBySlugParam, SelectDataLoaderParam, UpdateAnnouncementParam, UpdateAnnouncementScheduleParam, UpdateAppAssociationParam, UpdateAppCustomFieldByResourceSlugParam, UpdateAppCustomFieldDefinitionBySlugParam, UpdateAppCustomObjectBySlugParam, UpdateAppCustomObjectDefinitionBySlugParam, UpdateApplicationLanguageStatusParam, UpdateApplicationResourceTranslationParam, UpdateBlogParam, UpdateFaqParam, UpdateFaqCategoryParam, UpdateLandingPageParam, UpdateLegalInformationParam, UpdateNavigationParam, UpdatePageParam, UpdatePagePreviewParam, UpdatePathRedirectionRulesParam, UpdateSEOConfigurationParam, UpdateSupportInformationParam, UpdateTranslateUILabelsParam, UpsertApplicationResourceTranslationInBulkParam };
|
|
723
741
|
}
|
|
724
742
|
type AddApplicationLanguageParam = {
|
|
725
743
|
body: ContentPlatformModel.ApplicationLanguageCreate;
|
|
@@ -746,6 +764,9 @@ type BulkUnPublishApplicationLanguageParam = {
|
|
|
746
764
|
type CreateAnnouncementParam = {
|
|
747
765
|
body: ContentPlatformModel.AdminAnnouncementSchema;
|
|
748
766
|
};
|
|
767
|
+
type CreateAppAssociationParam = {
|
|
768
|
+
body: ContentPlatformModel.AppAssociationWriteBody;
|
|
769
|
+
};
|
|
749
770
|
type CreateAppCustomFieldDefinitionParam = {
|
|
750
771
|
resource: string;
|
|
751
772
|
body: ContentPlatformModel.CustomFieldDefinitionRequestSchema;
|
|
@@ -1225,6 +1246,9 @@ type UpdateAnnouncementScheduleParam = {
|
|
|
1225
1246
|
announcementId: string;
|
|
1226
1247
|
body: ContentPlatformModel.ScheduleSchema;
|
|
1227
1248
|
};
|
|
1249
|
+
type UpdateAppAssociationParam = {
|
|
1250
|
+
body: ContentPlatformModel.AppAssociationWriteBody;
|
|
1251
|
+
};
|
|
1228
1252
|
type UpdateAppCustomFieldByResourceSlugParam = {
|
|
1229
1253
|
resource: string;
|
|
1230
1254
|
resourceSlug: string;
|
|
@@ -1333,6 +1357,8 @@ type UpdateTranslateUILabelsParam = {
|
|
|
1333
1357
|
type UpsertApplicationResourceTranslationInBulkParam = {
|
|
1334
1358
|
body: ContentPlatformModel.ResourceTranslationList;
|
|
1335
1359
|
};
|
|
1360
|
+
type DeleteAppAssociationParam = any;
|
|
1361
|
+
type GetAppAssociationParam = any;
|
|
1336
1362
|
type GetAppCustomFieldTypesParam = any;
|
|
1337
1363
|
type GetAppResourcesParam = any;
|
|
1338
1364
|
type GetApplicationLanguagesParam = any;
|
|
@@ -38,6 +38,11 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
38
38
|
* @property {ContentPlatformModel.AdminAnnouncementSchema} body
|
|
39
39
|
*/
|
|
40
40
|
|
|
41
|
+
/**
|
|
42
|
+
* @typedef CreateAppAssociationParam
|
|
43
|
+
* @property {ContentPlatformModel.AppAssociationWriteBody} body
|
|
44
|
+
*/
|
|
45
|
+
|
|
41
46
|
/**
|
|
42
47
|
* @typedef CreateAppCustomFieldDefinitionParam
|
|
43
48
|
* @property {string} resource
|
|
@@ -100,6 +105,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
100
105
|
* @property {string} announcementId - ID allotted to the announcement.
|
|
101
106
|
*/
|
|
102
107
|
|
|
108
|
+
/** @typedef DeleteAppAssociationParam */
|
|
109
|
+
|
|
103
110
|
/**
|
|
104
111
|
* @typedef DeleteAppCustomFieldDefinitionBySlugParam
|
|
105
112
|
* @property {string} slug
|
|
@@ -220,6 +227,8 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
220
227
|
* Default value is 10.
|
|
221
228
|
*/
|
|
222
229
|
|
|
230
|
+
/** @typedef GetAppAssociationParam */
|
|
231
|
+
|
|
223
232
|
/**
|
|
224
233
|
* @typedef GetAppCustomFieldDefinitionByResourceParam
|
|
225
234
|
* @property {string} pageNo
|
|
@@ -496,6 +505,11 @@ const ContentPlatformModel = require("./ContentPlatformModel");
|
|
|
496
505
|
* @property {ContentPlatformModel.ScheduleSchema} body
|
|
497
506
|
*/
|
|
498
507
|
|
|
508
|
+
/**
|
|
509
|
+
* @typedef UpdateAppAssociationParam
|
|
510
|
+
* @property {ContentPlatformModel.AppAssociationWriteBody} body
|
|
511
|
+
*/
|
|
512
|
+
|
|
499
513
|
/**
|
|
500
514
|
* @typedef UpdateAppCustomFieldByResourceSlugParam
|
|
501
515
|
* @property {string} resource
|
|
@@ -663,6 +677,13 @@ class ContentPlatformApplicationValidator {
|
|
|
663
677
|
}).required();
|
|
664
678
|
}
|
|
665
679
|
|
|
680
|
+
/** @returns {CreateAppAssociationParam} */
|
|
681
|
+
static createAppAssociation() {
|
|
682
|
+
return Joi.object({
|
|
683
|
+
body: ContentPlatformModel.AppAssociationWriteBody().required(),
|
|
684
|
+
}).required();
|
|
685
|
+
}
|
|
686
|
+
|
|
666
687
|
/** @returns {CreateAppCustomFieldDefinitionParam} */
|
|
667
688
|
static createAppCustomFieldDefinition() {
|
|
668
689
|
return Joi.object({
|
|
@@ -749,6 +770,11 @@ class ContentPlatformApplicationValidator {
|
|
|
749
770
|
}).required();
|
|
750
771
|
}
|
|
751
772
|
|
|
773
|
+
/** @returns {DeleteAppAssociationParam} */
|
|
774
|
+
static deleteAppAssociation() {
|
|
775
|
+
return Joi.object({}).required();
|
|
776
|
+
}
|
|
777
|
+
|
|
752
778
|
/** @returns {DeleteAppCustomFieldDefinitionBySlugParam} */
|
|
753
779
|
static deleteAppCustomFieldDefinitionBySlug() {
|
|
754
780
|
return Joi.object({
|
|
@@ -905,6 +931,11 @@ class ContentPlatformApplicationValidator {
|
|
|
905
931
|
}).required();
|
|
906
932
|
}
|
|
907
933
|
|
|
934
|
+
/** @returns {GetAppAssociationParam} */
|
|
935
|
+
static getAppAssociation() {
|
|
936
|
+
return Joi.object({}).required();
|
|
937
|
+
}
|
|
938
|
+
|
|
908
939
|
/** @returns {GetAppCustomFieldDefinitionByResourceParam} */
|
|
909
940
|
static getAppCustomFieldDefinitionByResource() {
|
|
910
941
|
return Joi.object({
|
|
@@ -1264,6 +1295,13 @@ class ContentPlatformApplicationValidator {
|
|
|
1264
1295
|
}).required();
|
|
1265
1296
|
}
|
|
1266
1297
|
|
|
1298
|
+
/** @returns {UpdateAppAssociationParam} */
|
|
1299
|
+
static updateAppAssociation() {
|
|
1300
|
+
return Joi.object({
|
|
1301
|
+
body: ContentPlatformModel.AppAssociationWriteBody().required(),
|
|
1302
|
+
}).required();
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1267
1305
|
/** @returns {UpdateAppCustomFieldByResourceSlugParam} */
|
|
1268
1306
|
static updateAppCustomFieldByResourceSlug() {
|
|
1269
1307
|
return Joi.object({
|