@or-sdk/contacts 1.6.1-beta.692.0 → 1.6.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/CHANGELOG.md +9 -0
- package/dist/cjs/api/fieldSchemaApi.js +2 -1
- package/dist/cjs/api/fieldSchemaApi.js.map +1 -1
- package/dist/esm/api/fieldSchemaApi.js +2 -1
- package/dist/esm/api/fieldSchemaApi.js.map +1 -1
- package/dist/types/api/fieldSchemaApi.d.ts +2 -2
- package/dist/types/api/fieldSchemaApi.d.ts.map +1 -1
- package/package.json +4 -3
- package/src/api/fieldSchemaApi.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
### [1.6.1](https://gitlab.com/onereach/platform/or-sdk-next/compare/@or-sdk/contacts@1.6.0...@or-sdk/contacts@1.6.1) (2022-10-24)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **@or-sdk/contacts:** field schema pagination ([2d4985b](https://gitlab.com/onereach/platform/or-sdk-next/commit/2d4985b0ba7c42532ee4f283b2a5582902f3e152))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [1.6.0](https://gitlab.com/onereach/platform/or-sdk-next/compare/@or-sdk/contacts@1.5.1...@or-sdk/contacts@1.6.0) (2022-10-11)
|
|
7
16
|
|
|
8
17
|
|
|
@@ -27,10 +27,11 @@ var FieldSchemaApi = (function (_super) {
|
|
|
27
27
|
route: "field-schema/".concat(id),
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
|
-
FieldSchemaApi.prototype.getSchemasList = function () {
|
|
30
|
+
FieldSchemaApi.prototype.getSchemasList = function (params) {
|
|
31
31
|
return this.apiCall({
|
|
32
32
|
method: 'GET',
|
|
33
33
|
route: 'field-schema',
|
|
34
|
+
params: params,
|
|
34
35
|
});
|
|
35
36
|
};
|
|
36
37
|
FieldSchemaApi.prototype.updateSchema = function (id, data) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fieldSchemaApi.js","sourceRoot":"","sources":["../../../src/api/fieldSchemaApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qCAAoC;
|
|
1
|
+
{"version":3,"file":"fieldSchemaApi.js","sourceRoot":"","sources":["../../../src/api/fieldSchemaApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qCAAoC;AASpC;IAA4C,kCAAO;IAAnD;;IA0DA,CAAC;IArDC,kCAAS,GAAT,UAAU,EAAU;QAClB,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,uBAAgB,EAAE,CAAE;SAC5B,CAAC,CAAC;IACL,CAAC;IAKD,uCAAc,GAAd,UAAe,MAAgC;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,cAAc;YACrB,MAAM,QAAA;SACP,CAAC,CAAC;IACL,CAAC;IAOD,qCAAY,GAAZ,UAAa,EAAU,EAAE,IAA0B;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,OAAO;YACf,KAAK,EAAE,uBAAgB,EAAE,CAAE;YAC3B,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IAMD,qCAAY,GAAZ,UAAa,EAAU;QACrB,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,QAAQ;YAChB,KAAK,EAAE,uBAAgB,EAAE,CAAE;SAC5B,CAAC,CAAC;IACL,CAAC;IAMD,qCAAY,GAAZ,UAAa,IAA0B;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,MAAM;YACd,KAAK,EAAE,cAAc;YACrB,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IACH,qBAAC;AAAD,CAAC,AA1DD,CAA4C,iBAAO,GA0DlD"}
|
|
@@ -6,10 +6,11 @@ export default class FieldSchemaApi extends BaseApi {
|
|
|
6
6
|
route: `field-schema/${id}`,
|
|
7
7
|
});
|
|
8
8
|
}
|
|
9
|
-
getSchemasList() {
|
|
9
|
+
getSchemasList(params) {
|
|
10
10
|
return this.apiCall({
|
|
11
11
|
method: 'GET',
|
|
12
12
|
route: 'field-schema',
|
|
13
|
+
params,
|
|
13
14
|
});
|
|
14
15
|
}
|
|
15
16
|
updateSchema(id, data) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fieldSchemaApi.js","sourceRoot":"","sources":["../../../src/api/fieldSchemaApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"fieldSchemaApi.js","sourceRoot":"","sources":["../../../src/api/fieldSchemaApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,OAAO;IAKjD,SAAS,CAAC,EAAU;QAClB,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,gBAAgB,EAAE,EAAE;SAC5B,CAAC,CAAC;IACL,CAAC;IAKD,cAAc,CAAC,MAAgC;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,cAAc;YACrB,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAOD,YAAY,CAAC,EAAU,EAAE,IAA0B;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,OAAO;YACf,KAAK,EAAE,gBAAgB,EAAE,EAAE;YAC3B,IAAI;SACL,CAAC,CAAC;IACL,CAAC;IAMD,YAAY,CAAC,EAAU;QACrB,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,QAAQ;YAChB,KAAK,EAAE,gBAAgB,EAAE,EAAE;SAC5B,CAAC,CAAC;IACL,CAAC;IAMD,YAAY,CAAC,IAA0B;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,MAAM;YACd,KAAK,EAAE,cAAc;YACrB,IAAI;SACL,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseApi } from './baseApi';
|
|
2
|
-
import { FieldSchemaResponseDto, UpdateFieldSchemaDto, CreateFieldSchemaDto, FieldSchemaListDto } from '@onereach/types-contacts-api';
|
|
2
|
+
import { FieldSchemaResponseDto, UpdateFieldSchemaDto, CreateFieldSchemaDto, FieldSchemaListDto, FieldSchemaListParamsDto } from '@onereach/types-contacts-api';
|
|
3
3
|
export default class FieldSchemaApi extends BaseApi {
|
|
4
4
|
getSchema(id: string): Promise<FieldSchemaResponseDto>;
|
|
5
|
-
getSchemasList(): Promise<FieldSchemaListDto>;
|
|
5
|
+
getSchemasList(params: FieldSchemaListParamsDto): Promise<FieldSchemaListDto>;
|
|
6
6
|
updateSchema(id: string, data: UpdateFieldSchemaDto): Promise<FieldSchemaResponseDto>;
|
|
7
7
|
deleteSchema(id: string): Promise<void>;
|
|
8
8
|
createSchema(data: CreateFieldSchemaDto): Promise<FieldSchemaResponseDto>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fieldSchemaApi.d.ts","sourceRoot":"","sources":["../../../src/api/fieldSchemaApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"fieldSchemaApi.d.ts","sourceRoot":"","sources":["../../../src/api/fieldSchemaApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,OAAO;IAKjD,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAUtD,cAAc,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAa7E,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAYrF,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAWvC,YAAY,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAO1E"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.6.1
|
|
2
|
+
"version": "1.6.1",
|
|
3
3
|
"name": "@or-sdk/contacts",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"dev": "pnpm build:watch:esm"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@onereach/types-contacts-api": "^1.37.7-beta.
|
|
20
|
+
"@onereach/types-contacts-api": "^1.37.7-beta.907.0",
|
|
21
21
|
"concurrently": "^6.4.0",
|
|
22
22
|
"typescript": "^4.4.4"
|
|
23
23
|
},
|
|
@@ -26,5 +26,6 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@or-sdk/base": "^0.26.7"
|
|
29
|
-
}
|
|
29
|
+
},
|
|
30
|
+
"gitHead": "560756480c22d17f3c0b44bd7ae62016e4ad6593"
|
|
30
31
|
}
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
UpdateFieldSchemaDto,
|
|
5
5
|
CreateFieldSchemaDto,
|
|
6
6
|
FieldSchemaListDto,
|
|
7
|
+
FieldSchemaListParamsDto,
|
|
7
8
|
} from '@onereach/types-contacts-api';
|
|
8
9
|
|
|
9
10
|
export default class FieldSchemaApi extends BaseApi {
|
|
@@ -21,10 +22,11 @@ export default class FieldSchemaApi extends BaseApi {
|
|
|
21
22
|
/**
|
|
22
23
|
* @description Get list of field schemas
|
|
23
24
|
*/
|
|
24
|
-
getSchemasList(): Promise<FieldSchemaListDto> {
|
|
25
|
+
getSchemasList(params: FieldSchemaListParamsDto): Promise<FieldSchemaListDto> {
|
|
25
26
|
return this.apiCall({
|
|
26
27
|
method: 'GET',
|
|
27
28
|
route: 'field-schema',
|
|
29
|
+
params,
|
|
28
30
|
});
|
|
29
31
|
}
|
|
30
32
|
|