Skip to content

Commit 0a1500f

Browse files
committed
[Auto Generated] 3.16.3
1 parent ac7adf3 commit 0a1500f

25 files changed

+524
-86
lines changed

CHANGELOG.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,81 @@
1+
# CHANGE LOG (3.16.3) - 2.10.3
2+
3+
## Application Client
4+
5+
6+
7+
### User
8+
9+
10+
11+
#### getAttributesDefinition
12+
13+
- ##### What's New
14+
- [Added] method <code>getAttributesDefinition</code>
15+
16+
17+
18+
## Platform Client
19+
20+
21+
22+
### Content
23+
24+
25+
26+
#### updateInjectableTag
27+
28+
- ##### What's Deprecated
29+
- [Breaking] [Deleted] property <code>page</code> of schema <code>TagsSchema</code> in response with status code 200
30+
31+
32+
#### getInjectableTags
33+
34+
- ##### What's Deprecated
35+
- [Breaking] [Deleted] <code>query</code> parameter <code>pageNo</code> (type: <code>integer</code>)
36+
37+
- [Breaking] [Deleted] <code>query</code> parameter <code>pageSize</code> (type: <code>integer</code>)
38+
39+
- [Breaking] [Deleted] property <code>page</code> of schema <code>TagsSchema</code> in response with status code 200
40+
41+
42+
#### addInjectableTag
43+
44+
- ##### What's Deprecated
45+
- [Breaking] [Deleted] property <code>page</code> of schema <code>TagsSchema</code> in response with status code 200
46+
47+
48+
#### editInjectableTag
49+
50+
- ##### What's Deprecated
51+
- [Breaking] [Deleted] property <code>page</code> of schema <code>TagsSchema</code> in response with status code 200
52+
53+
54+
### User
55+
56+
57+
58+
#### createUserGroup
59+
60+
- ##### What's New
61+
- [Breaking] [Added] Possible values <code>ne,eq,gt,lt,gte,lte,cnt,nct,is,nis,sw,ew,btw,today,tomorrow,week,month,xdays,days_after_value,days_before_value,in,nin</code> to property <code>conditions[].type</code> of schema <code>ConditionsSchema</code> in request body
62+
- [Added] property <code>conditions[].ignore_year</code> of schema <code>ConditionsSchema</code> in request body
63+
64+
65+
#### updateUserGroup
66+
67+
- ##### What's New
68+
- [Breaking] [Added] Possible values <code>ne,eq,gt,lt,gte,lte,cnt,nct,is,nis,sw,ew,btw,today,tomorrow,week,month,xdays,days_after_value,days_before_value,in,nin</code> to property <code>conditions[].type</code> of schema <code>ConditionsSchema</code> in request body
69+
- [Added] property <code>conditions[].ignore_year</code> of schema <code>ConditionsSchema</code> in request body
70+
71+
72+
#### deleteUserGroup
73+
74+
- ##### What's New
75+
- [Added] method <code>deleteUserGroup</code>
76+
77+
78+
179
# CHANGE LOG (3.16.2) - 2.10.2
280

381
## Platform Client

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ console.log("Active Theme: ", response.information.name);
234234
The above code will log the curl command in the console
235235

236236
```bash
237-
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.16.2' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
237+
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.16.3' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
238238
Active Theme: Emerge
239239
```
240240

dist/application.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 40 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gofynd/fdk-client-javascript",
3-
"version": "3.16.2",
3+
"version": "3.16.3",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

sdk/application/User/UserApplicationClient.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ declare class User {
99
deleteMobileNumber: string;
1010
deleteUser: string;
1111
forgotPassword: string;
12+
getAttributesDefinition: string;
1213
getListOfActiveSessions: string;
1314
getLoggedInUser: string;
1415
getPlatformConfig: string;
@@ -107,6 +108,15 @@ declare class User {
107108
* @description: Reset a password using the code sent on email or sms the login. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/forgotPassword/).
108109
*/
109110
forgotPassword({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<LoginSuccess>;
111+
/**
112+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
113+
* @param {import("../ApplicationAPIClient").Options} - Options
114+
* @returns {Promise<Object>} - Success response
115+
* @name getAttributesDefinition
116+
* @summary: Get User Attribute Definitions
117+
* @description: Retrieve user attribute definitions. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/getAttributesDefinition/).
118+
*/
119+
getAttributesDefinition({ excludingIds, slug, type, customerEditable, encrypted, pinned, pinOrder, isLocked, name, registrationEnabled, registrationType, pageSize, pageNo, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<any>;
110120
/**
111121
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
112122
* @param {import("../ApplicationAPIClient").Options} - Options

sdk/application/User/UserApplicationClient.js

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ class User {
1919
deleteUser: "/service/application/user/authentication/v1.0/delete",
2020
forgotPassword:
2121
"/service/application/user/authentication/v1.0/login/password/reset/forgot",
22+
getAttributesDefinition:
23+
"/service/application/user/profile/v1.0/attributes/definition",
2224
getListOfActiveSessions:
2325
"/service/application/user/authentication/v1.0/sessions",
2426
getLoggedInUser: "/service/application/user/authentication/v1.0/session",
@@ -353,6 +355,71 @@ class User {
353355
return response;
354356
}
355357

358+
/**
359+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
360+
* @param {import("../ApplicationAPIClient").Options} - Options
361+
* @returns {Promise<Object>} - Success response
362+
* @name getAttributesDefinition
363+
* @summary: Get User Attribute Definitions
364+
* @description: Retrieve user attribute definitions. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/user/getAttributesDefinition/).
365+
*/
366+
async getAttributesDefinition(
367+
{
368+
excludingIds,
369+
slug,
370+
type,
371+
customerEditable,
372+
encrypted,
373+
pinned,
374+
pinOrder,
375+
isLocked,
376+
name,
377+
registrationEnabled,
378+
registrationType,
379+
pageSize,
380+
pageNo,
381+
requestHeaders,
382+
} = { requestHeaders: {} },
383+
{ responseHeaders } = { responseHeaders: false }
384+
) {
385+
const query_params = {};
386+
query_params["excluding_ids"] = excludingIds;
387+
query_params["slug"] = slug;
388+
query_params["type"] = type;
389+
query_params["customer_editable"] = customerEditable;
390+
query_params["encrypted"] = encrypted;
391+
query_params["pinned"] = pinned;
392+
query_params["pin_order"] = pinOrder;
393+
query_params["is_locked"] = isLocked;
394+
query_params["name"] = name;
395+
query_params["registration_enabled"] = registrationEnabled;
396+
query_params["registration_type"] = registrationType;
397+
query_params["page_size"] = pageSize;
398+
query_params["page_no"] = pageNo;
399+
400+
const xHeaders = {};
401+
402+
const response = await ApplicationAPIClient.execute(
403+
this._conf,
404+
"get",
405+
constructUrl({
406+
url: this._urls["getAttributesDefinition"],
407+
params: {},
408+
}),
409+
query_params,
410+
undefined,
411+
{ ...xHeaders, ...requestHeaders },
412+
{ responseHeaders }
413+
);
414+
415+
let responseData = response;
416+
if (responseHeaders) {
417+
responseData = response[0];
418+
}
419+
420+
return response;
421+
}
422+
356423
/**
357424
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
358425
* @param {import("../ApplicationAPIClient").Options} - Options

sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ declare class Communication {
432432
* @summary: Get all event subscriptions
433433
* @description: Retrieves a list of all event subscriptions. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/communication/getEventSubscriptions/).
434434
*/
435-
getEventSubscriptions({ pageNo, pageSize, populate, requestHeaders }?: CommunicationPlatformApplicationValidator.GetEventSubscriptionsParam, { responseHeaders }?: object): Promise<CommunicationPlatformModel.EventSubscriptions>;
435+
getEventSubscriptions({ pageNo, pageSize, populate, group, subGroup, fulfillmentOptionTypes, requestHeaders, }?: CommunicationPlatformApplicationValidator.GetEventSubscriptionsParam, { responseHeaders }?: object): Promise<CommunicationPlatformModel.EventSubscriptions>;
436436
/**
437437
* @param {CommunicationPlatformApplicationValidator.GetEventSubscriptionsByIdParam} arg
438438
* - Arg object

0 commit comments

Comments
 (0)