@gofynd/fdk-client-javascript 1.4.10-beta.1 → 1.4.10

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 CHANGED
@@ -127,9 +127,9 @@ getData();
127
127
 
128
128
  ---
129
129
 
130
- ### Sample Usage - Fetch function.
130
+ ### Sample Usage - Request function.
131
131
 
132
- The fetch function allows you to make custom API requests with ease. It is available on both `platform` and `application` client.
132
+ The request function allows you to make custom API requests with ease. It is available on both `platform` and `application` client.
133
133
 
134
134
  ```javascript
135
135
 
@@ -140,7 +140,7 @@ let auditLog = await client.request({
140
140
 
141
141
  ```
142
142
 
143
- The `fetch` function accepts an object with the following possible keys:
143
+ The `request` function accepts an object with the following possible keys:
144
144
 
145
145
  - **method** (string): The HTTP method to use (e.g., 'GET', 'POST', 'PUT', 'DELETE').
146
146
  - **url** (string): The URL endpoint for the request.
@@ -237,7 +237,7 @@ console.log("Active Theme: ", response.information.name);
237
237
  The above code will log the curl command in the console
238
238
 
239
239
  ```bash
240
- curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.4.10-beta.1' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
240
+ curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.4.10' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
241
241
  Active Theme: Emerge
242
242
  ```
243
243
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gofynd/fdk-client-javascript",
3
- "version": "1.4.10-beta.1",
3
+ "version": "1.4.10",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -222,7 +222,6 @@ export = ConfigurationApplicationModel;
222
222
  */
223
223
  /**
224
224
  * @typedef GoogleMap
225
- * @property {boolean} [enabled] - Shows whether Google map integration is enabled or not.
226
225
  * @property {GoogleMapCredentials} [credentials]
227
226
  */
228
227
  /**
@@ -1254,10 +1253,6 @@ type FyndRewardsCredentials = {
1254
1253
  /** @returns {GoogleMap} */
1255
1254
  declare function GoogleMap(): GoogleMap;
1256
1255
  type GoogleMap = {
1257
- /**
1258
- * - Shows whether Google map integration is enabled or not.
1259
- */
1260
- enabled?: boolean;
1261
1256
  credentials?: GoogleMapCredentials;
1262
1257
  };
1263
1258
  /** @returns {GoogleMapCredentials} */
@@ -252,7 +252,6 @@ const Joi = require("joi");
252
252
 
253
253
  /**
254
254
  * @typedef GoogleMap
255
- * @property {boolean} [enabled] - Shows whether Google map integration is enabled or not.
256
255
  * @property {GoogleMapCredentials} [credentials]
257
256
  */
258
257
 
@@ -1175,7 +1174,6 @@ class ConfigurationApplicationModel {
1175
1174
  /** @returns {GoogleMap} */
1176
1175
  static GoogleMap() {
1177
1176
  return Joi.object({
1178
- enabled: Joi.boolean(),
1179
1177
  credentials: ConfigurationApplicationModel.GoogleMapCredentials(),
1180
1178
  });
1181
1179
  }
@@ -774,7 +774,6 @@ export = ConfigurationPlatformModel;
774
774
  */
775
775
  /**
776
776
  * @typedef GoogleMap
777
- * @property {boolean} [enabled] - Shows whether Google map integration is enabled or not.
778
777
  * @property {GoogleMapCredentials} [credentials]
779
778
  */
780
779
  /**
@@ -2883,10 +2882,6 @@ type FyndRewardsCredentials = {
2883
2882
  /** @returns {GoogleMap} */
2884
2883
  declare function GoogleMap(): GoogleMap;
2885
2884
  type GoogleMap = {
2886
- /**
2887
- * - Shows whether Google map integration is enabled or not.
2888
- */
2889
- enabled?: boolean;
2890
2885
  credentials?: GoogleMapCredentials;
2891
2886
  };
2892
2887
  /** @returns {GoogleMapCredentials} */
@@ -876,7 +876,6 @@ const Joi = require("joi");
876
876
 
877
877
  /**
878
878
  * @typedef GoogleMap
879
- * @property {boolean} [enabled] - Shows whether Google map integration is enabled or not.
880
879
  * @property {GoogleMapCredentials} [credentials]
881
880
  */
882
881
 
@@ -2474,7 +2473,6 @@ class ConfigurationPlatformModel {
2474
2473
  /** @returns {GoogleMap} */
2475
2474
  static GoogleMap() {
2476
2475
  return Joi.object({
2477
- enabled: Joi.boolean(),
2478
2476
  credentials: ConfigurationPlatformModel.GoogleMapCredentials(),
2479
2477
  });
2480
2478
  }