@or-sdk/contacts 1.1.1-beta.580.0 → 1.1.2
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 +17 -0
- package/dist/cjs/Contacts.js +5 -9
- package/dist/cjs/Contacts.js.map +1 -1
- package/dist/cjs/api/contactApi.js +9 -1
- package/dist/cjs/api/contactApi.js.map +1 -1
- package/dist/cjs/api/fieldSchemaApi.js +59 -0
- package/dist/cjs/api/fieldSchemaApi.js.map +1 -0
- package/dist/cjs/api/index.js +15 -0
- package/dist/cjs/api/index.js.map +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/Contacts.js +2 -3
- package/dist/esm/Contacts.js.map +1 -1
- package/dist/esm/api/contactApi.js +9 -1
- package/dist/esm/api/contactApi.js.map +1 -1
- package/dist/esm/api/fieldSchemaApi.js +36 -0
- package/dist/esm/api/fieldSchemaApi.js.map +1 -0
- package/dist/esm/api/index.js +5 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/types/Contacts.d.ts +2 -3
- package/dist/types/Contacts.d.ts.map +1 -1
- package/dist/types/api/contactApi.d.ts +3 -2
- package/dist/types/api/contactApi.d.ts.map +1 -1
- package/dist/types/api/fieldSchemaApi.d.ts +10 -0
- package/dist/types/api/fieldSchemaApi.d.ts.map +1 -0
- package/dist/types/api/index.d.ts +5 -0
- package/dist/types/api/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +5 -4
- package/src/Contacts.ts +3 -3
- package/src/api/contactApi.ts +16 -2
- package/src/api/fieldSchemaApi.ts +66 -0
- package/src/api/index.ts +4 -0
- package/src/index.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
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.1.2](https://gitlab.com/onereach/platform/or-sdk-next/compare/@or-sdk/contacts@1.1.1...@or-sdk/contacts@1.1.2) (2022-08-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **@or-sdk/contacts:** add field schema api ([7746483](https://gitlab.com/onereach/platform/or-sdk-next/commit/7746483426275b02279bdb4bfba3ca515205e827))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### [1.1.1](https://gitlab.com/onereach/platform/or-sdk-next/compare/@or-sdk/contacts@1.1.0...@or-sdk/contacts@1.1.1) (2022-08-25)
|
|
16
|
+
|
|
17
|
+
**Note:** Version bump only for package @or-sdk/contacts
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
## [1.1.0](https://gitlab.com/onereach/platform/or-sdk-next/compare/@or-sdk/contacts@1.0.1...@or-sdk/contacts@1.1.0) (2022-08-09)
|
|
7
24
|
|
|
8
25
|
|
package/dist/cjs/Contacts.js
CHANGED
|
@@ -14,16 +14,11 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
14
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
-
};
|
|
20
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
18
|
exports.Contacts = void 0;
|
|
22
19
|
var base_1 = require("@or-sdk/base");
|
|
23
20
|
var constants_1 = require("./constants");
|
|
24
|
-
var
|
|
25
|
-
var migrationsApi_1 = __importDefault(require("./api/migrationsApi"));
|
|
26
|
-
var contactApi_1 = __importDefault(require("./api/contactApi"));
|
|
21
|
+
var api_1 = require("./api");
|
|
27
22
|
var Contacts = (function (_super) {
|
|
28
23
|
__extends(Contacts, _super);
|
|
29
24
|
function Contacts(params) {
|
|
@@ -36,9 +31,10 @@ var Contacts = (function (_super) {
|
|
|
36
31
|
serviceUrl: contactsApiUrl,
|
|
37
32
|
}) || this;
|
|
38
33
|
var apiCall = _this.callApiV2.bind(_this);
|
|
39
|
-
_this.contactBookApi = new
|
|
40
|
-
_this.migrationsApi = new
|
|
41
|
-
_this.contactApi = new
|
|
34
|
+
_this.contactBookApi = new api_1.ContactBookApi(apiCall);
|
|
35
|
+
_this.migrationsApi = new api_1.MigrationsApi(apiCall);
|
|
36
|
+
_this.contactApi = new api_1.ContactApi(apiCall);
|
|
37
|
+
_this.fieldSchemaApi = new api_1.FieldSchemaApi(apiCall);
|
|
42
38
|
return _this;
|
|
43
39
|
}
|
|
44
40
|
return Contacts;
|
package/dist/cjs/Contacts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Contacts.js","sourceRoot":"","sources":["../../src/Contacts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Contacts.js","sourceRoot":"","sources":["../../src/Contacts.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,qCAAoC;AAEpC,yCAAmD;AACnD,6BAAkF;AASlF;IAA8B,4BAAI;IAYhC,kBAAY,MAAsB;QAAlC,iBAcC;QAbS,IAAA,KAAK,GAAmC,MAAM,MAAzC,EAAE,YAAY,GAAqB,MAAM,aAA3B,EAAE,cAAc,GAAK,MAAM,eAAX,CAAY;gBACvD,kBAAM;YACJ,KAAK,OAAA;YACL,YAAY,cAAA;YACZ,UAAU,EAAE,gCAAoB;YAChC,UAAU,EAAE,cAAc;SAC3B,CAAC;QAEF,IAAM,OAAO,GAAG,KAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAI,CAAC,CAAC;QAC1C,KAAI,CAAC,cAAc,GAAG,IAAI,oBAAc,CAAC,OAAO,CAAC,CAAC;QAClD,KAAI,CAAC,aAAa,GAAG,IAAI,mBAAa,CAAC,OAAO,CAAC,CAAC;QAChD,KAAI,CAAC,UAAU,GAAG,IAAI,gBAAU,CAAC,OAAO,CAAC,CAAC;QAC1C,KAAI,CAAC,cAAc,GAAG,IAAI,oBAAc,CAAC,OAAO,CAAC,CAAC;;IACpD,CAAC;IACH,eAAC;AAAD,CAAC,AA3BD,CAA8B,WAAI,GA2BjC;AA3BY,4BAAQ"}
|
|
@@ -21,10 +21,18 @@ var ContactApi = (function (_super) {
|
|
|
21
21
|
function ContactApi() {
|
|
22
22
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
23
23
|
}
|
|
24
|
-
ContactApi.prototype.getContact = function (id) {
|
|
24
|
+
ContactApi.prototype.getContact = function (id, params) {
|
|
25
25
|
return this.apiCall({
|
|
26
26
|
method: 'GET',
|
|
27
27
|
route: "contact/".concat(id),
|
|
28
|
+
params: params,
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
ContactApi.prototype.getContactsList = function (params) {
|
|
32
|
+
return this.apiCall({
|
|
33
|
+
method: 'GET',
|
|
34
|
+
route: 'contact',
|
|
35
|
+
params: params,
|
|
28
36
|
});
|
|
29
37
|
};
|
|
30
38
|
ContactApi.prototype.updateContact = function (id, data) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contactApi.js","sourceRoot":"","sources":["../../../src/api/contactApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qCAAoC;AAGpC;IAAwC,8BAAO;IAA/C;;
|
|
1
|
+
{"version":3,"file":"contactApi.js","sourceRoot":"","sources":["../../../src/api/contactApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qCAAoC;AAGpC;IAAwC,8BAAO;IAA/C;;IA6DA,CAAC;IAvDC,+BAAU,GAAV,UAAW,EAAU,EAAE,MAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,kBAAW,EAAE,CAAE;YACtB,MAAM,QAAA;SACP,CAAC,CAAC;IACL,CAAC;IAMD,oCAAe,GAAf,UAAgB,MAAwB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,SAAS;YAChB,MAAM,QAAA;SACP,CAAC,CAAC;IACL,CAAC;IAOD,kCAAa,GAAb,UAAc,EAAU,EAAE,IAAsB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,OAAO;YACf,KAAK,EAAE,kBAAW,EAAE,CAAE;YACtB,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IAMD,kCAAa,GAAb,UAAc,EAAU;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,QAAQ;YAChB,KAAK,EAAE,kBAAW,EAAE,CAAE;SACvB,CAAC,CAAC;IACL,CAAC;IAMD,kCAAa,GAAb,UAAc,IAAsB;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,MAAM;YACd,KAAK,EAAE,SAAS;YAChB,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IACH,iBAAC;AAAD,CAAC,AA7DD,CAAwC,iBAAO,GA6D9C"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var baseApi_1 = require("./baseApi");
|
|
19
|
+
var FieldSchemaApi = (function (_super) {
|
|
20
|
+
__extends(FieldSchemaApi, _super);
|
|
21
|
+
function FieldSchemaApi() {
|
|
22
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
23
|
+
}
|
|
24
|
+
FieldSchemaApi.prototype.getSchema = function (id) {
|
|
25
|
+
return this.apiCall({
|
|
26
|
+
method: 'GET',
|
|
27
|
+
route: "field-schema/".concat(id),
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
FieldSchemaApi.prototype.getSchemasList = function () {
|
|
31
|
+
return this.apiCall({
|
|
32
|
+
method: 'GET',
|
|
33
|
+
route: 'field-schema',
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
FieldSchemaApi.prototype.updateSchema = function (id, data) {
|
|
37
|
+
return this.apiCall({
|
|
38
|
+
method: 'PATCH',
|
|
39
|
+
route: "field-schema/".concat(id),
|
|
40
|
+
data: data,
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
FieldSchemaApi.prototype.deleteSchema = function (id) {
|
|
44
|
+
return this.apiCall({
|
|
45
|
+
method: 'DELETE',
|
|
46
|
+
route: "field-schema/".concat(id),
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
FieldSchemaApi.prototype.createContact = function (data) {
|
|
50
|
+
return this.apiCall({
|
|
51
|
+
method: 'POST',
|
|
52
|
+
route: 'field-schema',
|
|
53
|
+
data: data,
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
return FieldSchemaApi;
|
|
57
|
+
}(baseApi_1.BaseApi));
|
|
58
|
+
exports.default = FieldSchemaApi;
|
|
59
|
+
//# sourceMappingURL=fieldSchemaApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldSchemaApi.js","sourceRoot":"","sources":["../../../src/api/fieldSchemaApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qCAAoC;AAQpC;IAA4C,kCAAO;IAAnD;;IAyDA,CAAC;IApDC,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;QACE,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,cAAc;SACtB,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,sCAAa,GAAb,UAAc,IAA0B;QACtC,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,AAzDD,CAA4C,iBAAO,GAyDlD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.FieldSchemaApi = exports.MigrationsApi = exports.ContactBookApi = exports.ContactApi = void 0;
|
|
7
|
+
var contactApi_1 = require("./contactApi");
|
|
8
|
+
Object.defineProperty(exports, "ContactApi", { enumerable: true, get: function () { return __importDefault(contactApi_1).default; } });
|
|
9
|
+
var contactBookApi_1 = require("./contactBookApi");
|
|
10
|
+
Object.defineProperty(exports, "ContactBookApi", { enumerable: true, get: function () { return __importDefault(contactBookApi_1).default; } });
|
|
11
|
+
var migrationsApi_1 = require("./migrationsApi");
|
|
12
|
+
Object.defineProperty(exports, "MigrationsApi", { enumerable: true, get: function () { return __importDefault(migrationsApi_1).default; } });
|
|
13
|
+
var fieldSchemaApi_1 = require("./fieldSchemaApi");
|
|
14
|
+
Object.defineProperty(exports, "FieldSchemaApi", { enumerable: true, get: function () { return __importDefault(fieldSchemaApi_1).default; } });
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":";;;;;;AAAA,2CAAqD;AAA5C,yHAAA,OAAO,OAAc;AAC9B,mDAA6D;AAApD,iIAAA,OAAO,OAAkB;AAClC,iDAA2D;AAAlD,+HAAA,OAAO,OAAiB;AACjC,mDAA6D;AAApD,iIAAA,OAAO,OAAkB"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -18,4 +18,5 @@ exports.Contacts = void 0;
|
|
|
18
18
|
var Contacts_1 = require("./Contacts");
|
|
19
19
|
Object.defineProperty(exports, "Contacts", { enumerable: true, get: function () { return Contacts_1.Contacts; } });
|
|
20
20
|
__exportStar(require("./types"), exports);
|
|
21
|
+
__exportStar(require("./api"), exports);
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,0CAAwB;AACxB,wCAAsB"}
|
package/dist/esm/Contacts.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Base } from '@or-sdk/base';
|
|
2
2
|
import { CONTACTS_SERVICE_KEY } from './constants';
|
|
3
|
-
import ContactBookApi from './api
|
|
4
|
-
import MigrationsApi from './api/migrationsApi';
|
|
5
|
-
import ContactApi from './api/contactApi';
|
|
3
|
+
import { ContactBookApi, MigrationsApi, ContactApi, FieldSchemaApi } from './api';
|
|
6
4
|
export class Contacts extends Base {
|
|
7
5
|
constructor(params) {
|
|
8
6
|
const { token, discoveryUrl, contactsApiUrl } = params;
|
|
@@ -16,6 +14,7 @@ export class Contacts extends Base {
|
|
|
16
14
|
this.contactBookApi = new ContactBookApi(apiCall);
|
|
17
15
|
this.migrationsApi = new MigrationsApi(apiCall);
|
|
18
16
|
this.contactApi = new ContactApi(apiCall);
|
|
17
|
+
this.fieldSchemaApi = new FieldSchemaApi(apiCall);
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
20
|
//# sourceMappingURL=Contacts.js.map
|
package/dist/esm/Contacts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Contacts.js","sourceRoot":"","sources":["../../src/Contacts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,cAAc,
|
|
1
|
+
{"version":3,"file":"Contacts.js","sourceRoot":"","sources":["../../src/Contacts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AASlF,MAAM,OAAO,QAAS,SAAQ,IAAI;IAYhC,YAAY,MAAsB;QAChC,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC;QACvD,KAAK,CAAC;YACJ,KAAK;YACL,YAAY;YACZ,UAAU,EAAE,oBAAoB;YAChC,UAAU,EAAE,cAAc;SAC3B,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,CAAC,cAAc,GAAG,IAAI,cAAc,CAAC,OAAO,CAAC,CAAC;QAClD,IAAI,CAAC,aAAa,GAAG,IAAI,aAAa,CAAC,OAAO,CAAC,CAAC;QAChD,IAAI,CAAC,UAAU,GAAG,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC;QAC1C,IAAI,CAAC,cAAc,GAAG,IAAI,cAAc,CAAC,OAAO,CAAC,CAAC;IACpD,CAAC;CACF"}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { BaseApi } from './baseApi';
|
|
2
2
|
export default class ContactApi extends BaseApi {
|
|
3
|
-
getContact(id) {
|
|
3
|
+
getContact(id, params) {
|
|
4
4
|
return this.apiCall({
|
|
5
5
|
method: 'GET',
|
|
6
6
|
route: `contact/${id}`,
|
|
7
|
+
params,
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
getContactsList(params) {
|
|
11
|
+
return this.apiCall({
|
|
12
|
+
method: 'GET',
|
|
13
|
+
route: 'contact',
|
|
14
|
+
params,
|
|
7
15
|
});
|
|
8
16
|
}
|
|
9
17
|
updateContact(id, data) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contactApi.js","sourceRoot":"","sources":["../../../src/api/contactApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,OAAO;
|
|
1
|
+
{"version":3,"file":"contactApi.js","sourceRoot":"","sources":["../../../src/api/contactApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,OAAO;IAM7C,UAAU,CAAC,EAAU,EAAE,MAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,WAAW,EAAE,EAAE;YACtB,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAMD,eAAe,CAAC,MAAwB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,SAAS;YAChB,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAOD,aAAa,CAAC,EAAU,EAAE,IAAsB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,OAAO;YACf,KAAK,EAAE,WAAW,EAAE,EAAE;YACtB,IAAI;SACL,CAAC,CAAC;IACL,CAAC;IAMD,aAAa,CAAC,EAAU;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,QAAQ;YAChB,KAAK,EAAE,WAAW,EAAE,EAAE;SACvB,CAAC,CAAC;IACL,CAAC;IAMD,aAAa,CAAC,IAAsB;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,MAAM;YACd,KAAK,EAAE,SAAS;YAChB,IAAI;SACL,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { BaseApi } from './baseApi';
|
|
2
|
+
export default class FieldSchemaApi extends BaseApi {
|
|
3
|
+
getSchema(id) {
|
|
4
|
+
return this.apiCall({
|
|
5
|
+
method: 'GET',
|
|
6
|
+
route: `field-schema/${id}`,
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
getSchemasList() {
|
|
10
|
+
return this.apiCall({
|
|
11
|
+
method: 'GET',
|
|
12
|
+
route: 'field-schema',
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
updateSchema(id, data) {
|
|
16
|
+
return this.apiCall({
|
|
17
|
+
method: 'PATCH',
|
|
18
|
+
route: `field-schema/${id}`,
|
|
19
|
+
data,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
deleteSchema(id) {
|
|
23
|
+
return this.apiCall({
|
|
24
|
+
method: 'DELETE',
|
|
25
|
+
route: `field-schema/${id}`,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
createContact(data) {
|
|
29
|
+
return this.apiCall({
|
|
30
|
+
method: 'POST',
|
|
31
|
+
route: 'field-schema',
|
|
32
|
+
data,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=fieldSchemaApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldSchemaApi.js","sourceRoot":"","sources":["../../../src/api/fieldSchemaApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQpC,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;QACZ,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,KAAK;YACb,KAAK,EAAE,cAAc;SACtB,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,aAAa,CAAC,IAA0B;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,MAAM,EAAE,MAAM;YACd,KAAK,EAAE,cAAc;YACrB,IAAI;SACL,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as ContactApi } from './contactApi';
|
|
2
|
+
export { default as ContactBookApi } from './contactBookApi';
|
|
3
|
+
export { default as MigrationsApi } from './migrationsApi';
|
|
4
|
+
export { default as FieldSchemaApi } from './fieldSchemaApi';
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/esm/index.js
CHANGED
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC"}
|
package/dist/types/Contacts.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { Base } from '@or-sdk/base';
|
|
2
2
|
import { ContactsConfig } from './types';
|
|
3
|
-
import ContactBookApi from './api
|
|
4
|
-
import MigrationsApi from './api/migrationsApi';
|
|
5
|
-
import ContactApi from './api/contactApi';
|
|
3
|
+
import { ContactBookApi, MigrationsApi, ContactApi, FieldSchemaApi } from './api';
|
|
6
4
|
export declare class Contacts extends Base {
|
|
7
5
|
readonly contactBookApi: ContactBookApi;
|
|
8
6
|
readonly migrationsApi: MigrationsApi;
|
|
9
7
|
readonly contactApi: ContactApi;
|
|
8
|
+
readonly fieldSchemaApi: FieldSchemaApi;
|
|
10
9
|
constructor(params: ContactsConfig);
|
|
11
10
|
}
|
|
12
11
|
//# sourceMappingURL=Contacts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Contacts.d.ts","sourceRoot":"","sources":["../../src/Contacts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,cAAc,
|
|
1
|
+
{"version":3,"file":"Contacts.d.ts","sourceRoot":"","sources":["../../src/Contacts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AASlF,qBAAa,QAAS,SAAQ,IAAI;IAEhC,SAAgB,cAAc,EAAE,cAAc,CAAC;IAC/C,SAAgB,aAAa,EAAE,aAAa,CAAC;IAC7C,SAAgB,UAAU,EAAE,UAAU,CAAC;IACvC,SAAgB,cAAc,EAAE,cAAc,CAAC;gBAOnC,MAAM,EAAE,cAAc;CAenC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BaseApi } from './baseApi';
|
|
2
|
-
import { ContactResponseDto, CreateContactDto, UpdateContactDto } from '@onereach/types-contacts-api';
|
|
2
|
+
import { ContactResponseDto, CreateContactDto, UpdateContactDto, ContactParamsDto } from '@onereach/types-contacts-api';
|
|
3
3
|
export default class ContactApi extends BaseApi {
|
|
4
|
-
getContact(id: string): Promise<ContactResponseDto>;
|
|
4
|
+
getContact(id: string, params: ContactParamsDto): Promise<ContactResponseDto>;
|
|
5
|
+
getContactsList(params: ContactParamsDto): Promise<ContactResponseDto>;
|
|
5
6
|
updateContact(id: string, data: UpdateContactDto): Promise<ContactResponseDto>;
|
|
6
7
|
deleteContact(id: string): Promise<void>;
|
|
7
8
|
createContact(data: CreateContactDto): Promise<ContactResponseDto>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contactApi.d.ts","sourceRoot":"","sources":["../../../src/api/contactApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"contactApi.d.ts","sourceRoot":"","sources":["../../../src/api/contactApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAExH,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,OAAO;IAM7C,UAAU,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAY7E,eAAe,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAatE,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAY9E,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAWxC,aAAa,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAOnE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseApi } from './baseApi';
|
|
2
|
+
import { FieldSchemaResponseDto, UpdateFieldSchemaDto, CreateFieldSchemaDto, FieldSchemaListDto } from '@onereach/types-contacts-api';
|
|
3
|
+
export default class FieldSchemaApi extends BaseApi {
|
|
4
|
+
getSchema(id: string): Promise<FieldSchemaResponseDto>;
|
|
5
|
+
getSchemasList(): Promise<FieldSchemaListDto>;
|
|
6
|
+
updateSchema(id: string, data: UpdateFieldSchemaDto): Promise<FieldSchemaResponseDto>;
|
|
7
|
+
deleteSchema(id: string): Promise<void>;
|
|
8
|
+
createContact(data: CreateFieldSchemaDto): Promise<FieldSchemaResponseDto>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=fieldSchemaApi.d.ts.map
|
|
@@ -0,0 +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,EACnB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,OAAO;IAKjD,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAUtD,cAAc,IAAI,OAAO,CAAC,kBAAkB,CAAC;IAY7C,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,aAAa,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAO3E"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as ContactApi } from './contactApi';
|
|
2
|
+
export { default as ContactBookApi } from './contactBookApi';
|
|
3
|
+
export { default as MigrationsApi } from './migrationsApi';
|
|
4
|
+
export { default as FieldSchemaApi } from './fieldSchemaApi';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.1.
|
|
2
|
+
"version": "1.1.2",
|
|
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": "^0.0.
|
|
20
|
+
"@onereach/types-contacts-api": "^0.0.9",
|
|
21
21
|
"concurrently": "^6.4.0",
|
|
22
22
|
"typescript": "^4.4.4"
|
|
23
23
|
},
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@or-sdk/base": "^0.26.4
|
|
29
|
-
}
|
|
28
|
+
"@or-sdk/base": "^0.26.4"
|
|
29
|
+
},
|
|
30
|
+
"gitHead": "d61bc325a39acce2515aafd69c8f1b62d23d84de"
|
|
30
31
|
}
|
package/src/Contacts.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { Base } from '@or-sdk/base';
|
|
2
2
|
import { ContactsConfig } from './types';
|
|
3
3
|
import { CONTACTS_SERVICE_KEY } from './constants';
|
|
4
|
-
import ContactBookApi from './api
|
|
5
|
-
import MigrationsApi from './api/migrationsApi';
|
|
6
|
-
import ContactApi from './api/contactApi';
|
|
4
|
+
import { ContactBookApi, MigrationsApi, ContactApi, FieldSchemaApi } from './api';
|
|
7
5
|
|
|
8
6
|
/**
|
|
9
7
|
* OneReach Contacts service client
|
|
@@ -17,6 +15,7 @@ export class Contacts extends Base {
|
|
|
17
15
|
public readonly contactBookApi: ContactBookApi;
|
|
18
16
|
public readonly migrationsApi: MigrationsApi;
|
|
19
17
|
public readonly contactApi: ContactApi;
|
|
18
|
+
public readonly fieldSchemaApi: FieldSchemaApi;
|
|
20
19
|
/**
|
|
21
20
|
* ```typescript
|
|
22
21
|
* import { Contacts } from '@or-sdk/contacts'
|
|
@@ -36,5 +35,6 @@ export class Contacts extends Base {
|
|
|
36
35
|
this.contactBookApi = new ContactBookApi(apiCall);
|
|
37
36
|
this.migrationsApi = new MigrationsApi(apiCall);
|
|
38
37
|
this.contactApi = new ContactApi(apiCall);
|
|
38
|
+
this.fieldSchemaApi = new FieldSchemaApi(apiCall);
|
|
39
39
|
}
|
|
40
40
|
}
|
package/src/api/contactApi.ts
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
import { BaseApi } from './baseApi';
|
|
2
|
-
import { ContactResponseDto, CreateContactDto, UpdateContactDto } from '@onereach/types-contacts-api';
|
|
2
|
+
import { ContactResponseDto, CreateContactDto, UpdateContactDto, ContactParamsDto } from '@onereach/types-contacts-api';
|
|
3
3
|
|
|
4
4
|
export default class ContactApi extends BaseApi {
|
|
5
5
|
/**
|
|
6
6
|
* @description Get specific Contact
|
|
7
|
+
* @param params
|
|
7
8
|
* @param id
|
|
8
9
|
*/
|
|
9
|
-
getContact(id: string): Promise<ContactResponseDto> {
|
|
10
|
+
getContact(id: string, params: ContactParamsDto): Promise<ContactResponseDto> {
|
|
10
11
|
return this.apiCall({
|
|
11
12
|
method: 'GET',
|
|
12
13
|
route: `contact/${id}`,
|
|
14
|
+
params,
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @description Get list of Contacts for specific contactBook
|
|
20
|
+
* @param params
|
|
21
|
+
*/
|
|
22
|
+
getContactsList(params: ContactParamsDto): Promise<ContactResponseDto> {
|
|
23
|
+
return this.apiCall({
|
|
24
|
+
method: 'GET',
|
|
25
|
+
route: 'contact',
|
|
26
|
+
params,
|
|
13
27
|
});
|
|
14
28
|
}
|
|
15
29
|
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { BaseApi } from './baseApi';
|
|
2
|
+
import {
|
|
3
|
+
FieldSchemaResponseDto,
|
|
4
|
+
UpdateFieldSchemaDto,
|
|
5
|
+
CreateFieldSchemaDto,
|
|
6
|
+
FieldSchemaListDto,
|
|
7
|
+
} from '@onereach/types-contacts-api';
|
|
8
|
+
|
|
9
|
+
export default class FieldSchemaApi extends BaseApi {
|
|
10
|
+
/**
|
|
11
|
+
* @description Get specific field schema
|
|
12
|
+
* @param id
|
|
13
|
+
*/
|
|
14
|
+
getSchema(id: string): Promise<FieldSchemaResponseDto> {
|
|
15
|
+
return this.apiCall({
|
|
16
|
+
method: 'GET',
|
|
17
|
+
route: `field-schema/${id}`,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @description Get list of field schemas
|
|
23
|
+
*/
|
|
24
|
+
getSchemasList(): Promise<FieldSchemaListDto> {
|
|
25
|
+
return this.apiCall({
|
|
26
|
+
method: 'GET',
|
|
27
|
+
route: 'field-schema',
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @description Update field schema
|
|
33
|
+
* @param data
|
|
34
|
+
* @param id
|
|
35
|
+
*/
|
|
36
|
+
updateSchema(id: string, data: UpdateFieldSchemaDto): Promise<FieldSchemaResponseDto> {
|
|
37
|
+
return this.apiCall({
|
|
38
|
+
method: 'PATCH',
|
|
39
|
+
route: `field-schema/${id}`,
|
|
40
|
+
data,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @description Delete field schema
|
|
46
|
+
* @param id
|
|
47
|
+
*/
|
|
48
|
+
deleteSchema(id: string): Promise<void> {
|
|
49
|
+
return this.apiCall({
|
|
50
|
+
method: 'DELETE',
|
|
51
|
+
route: `field-schema/${id}`,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @description Create field schema
|
|
57
|
+
* @param data
|
|
58
|
+
*/
|
|
59
|
+
createContact(data: CreateFieldSchemaDto): Promise<FieldSchemaResponseDto> {
|
|
60
|
+
return this.apiCall({
|
|
61
|
+
method: 'POST',
|
|
62
|
+
route: 'field-schema',
|
|
63
|
+
data,
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
package/src/api/index.ts
ADDED
package/src/index.ts
CHANGED