@gofynd/fdk-client-javascript 1.1.3 → 1.1.5

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.
Files changed (51) hide show
  1. package/README.md +1 -0
  2. package/index.d.ts +4 -1
  3. package/index.js +7 -0
  4. package/package.json +1 -1
  5. package/partner.d.ts +4 -0
  6. package/partner.js +7 -0
  7. package/sdk/application/Common/CommonApplicationModel.js +4 -0
  8. package/sdk/application/Configuration/ConfigurationApplicationModel.js +5 -5
  9. package/sdk/application/Lead/LeadApplicationModel.js +4 -1
  10. package/sdk/partner/OAuthClient.d.ts +14 -0
  11. package/sdk/partner/OAuthClient.js +112 -0
  12. package/sdk/partner/PartnerAPIClient.d.ts +12 -0
  13. package/sdk/partner/PartnerAPIClient.js +42 -0
  14. package/sdk/partner/PartnerClient.d.ts +6 -0
  15. package/sdk/partner/PartnerClient.js +17 -0
  16. package/sdk/partner/PartnerConfig.d.ts +30 -0
  17. package/sdk/partner/PartnerConfig.js +39 -0
  18. package/sdk/partner/index.d.ts +3 -0
  19. package/sdk/partner/index.js +5 -0
  20. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +32 -0
  21. package/sdk/platform/Cart/CartPlatformApplicationClient.js +184 -0
  22. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +3 -0
  23. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +19 -0
  24. package/sdk/platform/Cart/CartPlatformModel.d.ts +6 -0
  25. package/sdk/platform/Cart/CartPlatformModel.js +72 -1
  26. package/sdk/platform/Catalog/CatalogPlatformModel.js +2 -2
  27. package/sdk/platform/Common/CommonPlatformModel.js +4 -0
  28. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +8 -7
  29. package/sdk/platform/Order/OrderPlatformClient.d.ts +3 -1
  30. package/sdk/platform/Order/OrderPlatformClient.js +5 -0
  31. package/sdk/platform/Order/OrderPlatformModel.js +1 -1
  32. package/sdk/platform/Order/OrderPlatformValidator.js +1 -0
  33. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +4 -0
  34. package/sdk/platform/Payment/PaymentPlatformModel.js +42 -7
  35. package/sdk/platform/PlatformApplicationClient.d.ts +103 -2
  36. package/sdk/platform/PlatformApplicationClient.js +109 -0
  37. package/sdk/platform/PlatformClient.d.ts +642 -36
  38. package/sdk/platform/PlatformClient.js +773 -18
  39. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +134 -0
  40. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +852 -0
  41. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +16 -0
  42. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +81 -0
  43. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +223 -0
  44. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1296 -0
  45. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +97 -0
  46. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +776 -0
  47. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +21 -0
  48. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +130 -0
  49. package/sdk/platform/index.d.ts +1 -0
  50. package/sdk/platform/index.js +2 -0
  51. package/sdk/public/Configuration/ConfigurationPublicModel.js +5 -0
@@ -0,0 +1,134 @@
1
+ export = Serviceability;
2
+ declare class Serviceability {
3
+ constructor(config: any, applicationId: any);
4
+ config: any;
5
+ applicationId: any;
6
+ /**
7
+ * @param {Object} arg - Arg object.
8
+ * @param {ApplicationCompanyDpViewRequest} arg.body
9
+ * @returns {Promise<ApplicationCompanyDpViewResponse>} - Success response
10
+ * @summary: Add application dp data
11
+ * @description: This API add application dp data.
12
+ */
13
+ addAppDp({ body }?: {
14
+ body: ApplicationCompanyDpViewRequest;
15
+ }): Promise<ApplicationCompanyDpViewResponse>;
16
+ /**
17
+ * @param {Object} arg - Arg object.
18
+ * @param {number} arg.courierPartnerId - A `courier_partner_id` is a unique
19
+ * identifier of a particular delivery partner.
20
+ * @returns {Promise<ApplicationCompanyDpViewResponse>} - Success response
21
+ * @summary: Delete application dp data
22
+ * @description: This API remove application dp data.
23
+ */
24
+ deleteAppDp({ courierPartnerId }?: {
25
+ courierPartnerId: number;
26
+ }): Promise<ApplicationCompanyDpViewResponse>;
27
+ /**
28
+ * @param {Object} arg - Arg object.
29
+ * @returns {Promise<ApplicationServiceabilityConfigResponse>} - Success response
30
+ * @summary: Zone configuration of application.
31
+ * @description: This API returns serviceability config of the application.
32
+ */
33
+ getApplicationServiceability({}?: any): Promise<ApplicationServiceabilityConfigResponse>;
34
+ /**
35
+ * @param {Object} arg - Arg object.
36
+ * @returns {Promise<ApplicationSelfShipConfigResponse>} - Success response
37
+ * @summary: Self-ship configuration of application.
38
+ * @description: This API returns Self-ship configuration of the application.
39
+ */
40
+ getApplicationServiceabilitySelfShipment({}?: any): Promise<ApplicationSelfShipConfigResponse>;
41
+ /**
42
+ * @param {Object} arg - Arg object.
43
+ * @returns {Promise<DPApplicationRuleResponse>} - Success response
44
+ * @summary: Get All DpApplicationRules rules added at application level from database.
45
+ * @description: This API returns response of all rules of DpApplicationRules from mongo database.
46
+ */
47
+ getDpApplicationRules({}?: any): Promise<DPApplicationRuleResponse>;
48
+ /**
49
+ * @param {Object} arg - Arg object.
50
+ * @param {GetZoneFromPincodeViewRequest} arg.body
51
+ * @returns {Promise<GetZoneFromPincodeViewResponse>} - Success response
52
+ * @summary: GET zone from the Pincode.
53
+ * @description: This API returns zone from the Pincode View.
54
+ */
55
+ getZoneFromPincodeView({ body }?: {
56
+ body: GetZoneFromPincodeViewRequest;
57
+ }): Promise<GetZoneFromPincodeViewResponse>;
58
+ /**
59
+ * @param {Object} arg - Arg object.
60
+ * @param {number} [arg.pageNo] - Index of the item to start returning with
61
+ * @param {number} [arg.pageSize] - Determines the items to be displayed in a page
62
+ * @param {string[]} [arg.zoneId] - List of zones to query for
63
+ * @param {string} [arg.q] - Search with name as a free text
64
+ * @returns {Promise<GetZoneFromApplicationIdViewResponse>} - Success response
65
+ * @summary: GET zones from the application_id.
66
+ * @description: This API returns zones from the application_id View.
67
+ */
68
+ getZonesFromApplicationIdView({ pageNo, pageSize, zoneId, q }?: {
69
+ pageNo?: number;
70
+ pageSize?: number;
71
+ zoneId?: string[];
72
+ q?: string;
73
+ }): Promise<GetZoneFromApplicationIdViewResponse>;
74
+ /**
75
+ * @param {Object} arg - Arg object.
76
+ * @param {SelfShipResponse} arg.body
77
+ * @returns {Promise<ApplicationSelfShipConfigResponse>} - Success response
78
+ * @summary: Self-ship configuration of application.
79
+ * @description: This API updates Self-ship configuration of the application.
80
+ */
81
+ patchApplicationServiceabilitySelfShipment({ body }?: {
82
+ body: SelfShipResponse;
83
+ }): Promise<ApplicationSelfShipConfigResponse>;
84
+ /**
85
+ * @param {Object} arg - Arg object.
86
+ * @param {PincodeMopUpdateAuditHistoryRequest} arg.body
87
+ * @returns {Promise<PincodeMopUpdateAuditHistoryResponseData>} - Success response
88
+ * @summary: Auditlog configuration of application.
89
+ * @description: This API returns Audit logs of Pincode.
90
+ */
91
+ updatePincodeAuditHistory({ body }?: {
92
+ body: PincodeMopUpdateAuditHistoryRequest;
93
+ }): Promise<PincodeMopUpdateAuditHistoryResponseData>;
94
+ /**
95
+ * @param {Object} arg - Arg object.
96
+ * @param {PincodeMopBulkData} arg.body
97
+ * @returns {Promise<PincodeBulkViewResponse>} - Success response
98
+ * @summary: Bulk Update of pincode in the application.
99
+ * @description: This API constructs bulk write operations to update the MOP data for each pincode in the payload.
100
+ */
101
+ updatePincodeBulkView({ body }?: {
102
+ body: PincodeMopBulkData;
103
+ }): Promise<PincodeBulkViewResponse>;
104
+ /**
105
+ * @param {Object} arg - Arg object.
106
+ * @param {PincodeCodStatusListingRequest} arg.body
107
+ * @returns {Promise<PincodeCodStatusListingResponse>} - Success response
108
+ * @summary: Pincode count view of application.
109
+ * @description: This API returns count of active pincode.
110
+ */
111
+ updatePincodeCoDListing({ body }?: {
112
+ body: PincodeCodStatusListingRequest;
113
+ }): Promise<PincodeCodStatusListingResponse>;
114
+ /**
115
+ * @param {Object} arg - Arg object.
116
+ * @param {PincodeMopData} arg.body
117
+ * @returns {Promise<PincodeMOPresponse>} - Success response
118
+ * @summary: PincodeView update of MOP.
119
+ * @description: This API updates Pincode method of payment.
120
+ */
121
+ updatePincodeMopView({ body }?: {
122
+ body: PincodeMopData;
123
+ }): Promise<PincodeMOPresponse>;
124
+ /**
125
+ * @param {Object} arg - Arg object.
126
+ * @param {DPApplicationRuleRequest} arg.body
127
+ * @returns {Promise<DPApplicationRuleResponse>} - Success response
128
+ * @summary: Upsert of DpApplicationRules in database.
129
+ * @description: This API returns response of upsert of DpApplicationRules in mongo database.
130
+ */
131
+ upsertDpApplicationRules({ body }?: {
132
+ body: DPApplicationRuleRequest;
133
+ }): Promise<DPApplicationRuleResponse>;
134
+ }