@sipgate/integration-bridge 1.0.30 → 1.0.32
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.
|
@@ -26,5 +26,6 @@ var ContactScope;
|
|
|
26
26
|
(function (ContactScope) {
|
|
27
27
|
ContactScope["PRIVATE"] = "PRIVATE";
|
|
28
28
|
ContactScope["SHARED"] = "SHARED";
|
|
29
|
+
ContactScope["INTERNAL"] = "INTERNAL";
|
|
29
30
|
})(ContactScope = exports.ContactScope || (exports.ContactScope = {}));
|
|
30
31
|
//# sourceMappingURL=contact.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.model.js","sourceRoot":"","sources":["../../src/models/contact.model.ts"],"names":[],"mappings":";;;AAMA,IAAY,gBAcX;AAdD,WAAY,gBAAgB;IAC1B,iCAAa,CAAA;IACb,qCAAiB,CAAA;IACjB,iCAAa,CAAA;IACb,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,mCAAe,CAAA;IACf,6CAAyB,CAAA;IACzB,2CAAuB,CAAA;IACvB,iCAAa,CAAA;IACb,+CAA2B,CAAA;IAC3B,mCAAe,CAAA;IACf,6CAAyB,CAAA;AAC3B,CAAC,EAdW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAc3B;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,8CAA2B,CAAA;IAC3B,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;AAOD,IAAY,
|
|
1
|
+
{"version":3,"file":"contact.model.js","sourceRoot":"","sources":["../../src/models/contact.model.ts"],"names":[],"mappings":";;;AAMA,IAAY,gBAcX;AAdD,WAAY,gBAAgB;IAC1B,iCAAa,CAAA;IACb,qCAAiB,CAAA;IACjB,iCAAa,CAAA;IACb,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,mCAAe,CAAA;IACf,6CAAyB,CAAA;IACzB,2CAAuB,CAAA;IACvB,iCAAa,CAAA;IACb,+CAA2B,CAAA;IAC3B,mCAAe,CAAA;IACf,6CAAyB,CAAA;AAC3B,CAAC,EAdW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAc3B;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,8CAA2B,CAAA;IAC3B,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;AAOD,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;AACvB,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { IntegrationEntityType } from '../models/integration-entity.model';
|
|
3
|
+
import { ContactScope } from '../models';
|
|
3
4
|
export declare const contactSchema: z.ZodObject<{
|
|
4
5
|
id: z.ZodString;
|
|
5
6
|
name: z.ZodNullable<z.ZodString>;
|
|
@@ -40,6 +41,7 @@ export declare const contactSchema: z.ZodObject<{
|
|
|
40
41
|
label?: string | null | undefined;
|
|
41
42
|
logId?: string | null | undefined;
|
|
42
43
|
}>, "many">>;
|
|
44
|
+
scope: z.ZodOptional<z.ZodNativeEnum<typeof ContactScope>>;
|
|
43
45
|
}, "strip", z.ZodTypeAny, {
|
|
44
46
|
id: string;
|
|
45
47
|
name: string | null;
|
|
@@ -62,6 +64,7 @@ export declare const contactSchema: z.ZodObject<{
|
|
|
62
64
|
label?: string | null | undefined;
|
|
63
65
|
logId?: string | null | undefined;
|
|
64
66
|
}[] | undefined;
|
|
67
|
+
scope?: ContactScope | undefined;
|
|
65
68
|
}, {
|
|
66
69
|
id: string;
|
|
67
70
|
name: string | null;
|
|
@@ -84,6 +87,7 @@ export declare const contactSchema: z.ZodObject<{
|
|
|
84
87
|
label?: string | null | undefined;
|
|
85
88
|
logId?: string | null | undefined;
|
|
86
89
|
}[] | undefined;
|
|
90
|
+
scope?: ContactScope | undefined;
|
|
87
91
|
}>;
|
|
88
92
|
export declare const contactsGetSchema: z.ZodArray<z.ZodObject<{
|
|
89
93
|
id: z.ZodString;
|
|
@@ -125,6 +129,7 @@ export declare const contactsGetSchema: z.ZodArray<z.ZodObject<{
|
|
|
125
129
|
label?: string | null | undefined;
|
|
126
130
|
logId?: string | null | undefined;
|
|
127
131
|
}>, "many">>;
|
|
132
|
+
scope: z.ZodOptional<z.ZodNativeEnum<typeof ContactScope>>;
|
|
128
133
|
}, "strip", z.ZodTypeAny, {
|
|
129
134
|
id: string;
|
|
130
135
|
name: string | null;
|
|
@@ -147,6 +152,7 @@ export declare const contactsGetSchema: z.ZodArray<z.ZodObject<{
|
|
|
147
152
|
label?: string | null | undefined;
|
|
148
153
|
logId?: string | null | undefined;
|
|
149
154
|
}[] | undefined;
|
|
155
|
+
scope?: ContactScope | undefined;
|
|
150
156
|
}, {
|
|
151
157
|
id: string;
|
|
152
158
|
name: string | null;
|
|
@@ -169,6 +175,7 @@ export declare const contactsGetSchema: z.ZodArray<z.ZodObject<{
|
|
|
169
175
|
label?: string | null | undefined;
|
|
170
176
|
logId?: string | null | undefined;
|
|
171
177
|
}[] | undefined;
|
|
178
|
+
scope?: ContactScope | undefined;
|
|
172
179
|
}>, "many">;
|
|
173
180
|
export declare const contactCreateSchema: z.ZodObject<{
|
|
174
181
|
name: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
@@ -189,6 +196,7 @@ export declare const contactCreateSchema: z.ZodObject<{
|
|
|
189
196
|
phoneNumber: string;
|
|
190
197
|
}>, "many">;
|
|
191
198
|
type: z.ZodOptional<z.ZodNativeEnum<typeof IntegrationEntityType>>;
|
|
199
|
+
scope: z.ZodOptional<z.ZodNativeEnum<typeof ContactScope>>;
|
|
192
200
|
}, "strip", z.ZodTypeAny, {
|
|
193
201
|
name: string | null;
|
|
194
202
|
firstName: string | null;
|
|
@@ -202,6 +210,7 @@ export declare const contactCreateSchema: z.ZodObject<{
|
|
|
202
210
|
phoneNumber: string;
|
|
203
211
|
}[];
|
|
204
212
|
type?: IntegrationEntityType | undefined;
|
|
213
|
+
scope?: ContactScope | undefined;
|
|
205
214
|
}, {
|
|
206
215
|
phoneNumbers: {
|
|
207
216
|
label: string;
|
|
@@ -215,4 +224,5 @@ export declare const contactCreateSchema: z.ZodObject<{
|
|
|
215
224
|
organization?: string | null | undefined;
|
|
216
225
|
contactUrl?: string | null | undefined;
|
|
217
226
|
avatarUrl?: string | null | undefined;
|
|
227
|
+
scope?: ContactScope | undefined;
|
|
218
228
|
}>;
|
package/dist/schemas/contacts.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.contactCreateSchema = exports.contactsGetSchema = exports.contactSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const integration_entity_model_1 = require("../models/integration-entity.model"); // export const contactsSchema: ValidationSchema = {
|
|
6
|
+
const models_1 = require("../models");
|
|
6
7
|
// export const contactsSchema: ValidationSchema = {
|
|
7
8
|
// title: 'Contacts',
|
|
8
9
|
// type: 'array',
|
|
@@ -90,6 +91,7 @@ exports.contactSchema = zod_1.z.object({
|
|
|
90
91
|
})),
|
|
91
92
|
type: zod_1.z.nativeEnum(integration_entity_model_1.IntegrationEntityType).optional(),
|
|
92
93
|
relatesTo: zod_1.z.array(integrationEntitySchema).optional(),
|
|
94
|
+
scope: zod_1.z.nativeEnum(models_1.ContactScope).optional(),
|
|
93
95
|
});
|
|
94
96
|
exports.contactsGetSchema = zod_1.z.array(exports.contactSchema);
|
|
95
97
|
exports.contactCreateSchema = zod_1.z.object({
|
|
@@ -105,5 +107,6 @@ exports.contactCreateSchema = zod_1.z.object({
|
|
|
105
107
|
phoneNumber: zod_1.z.string(),
|
|
106
108
|
})),
|
|
107
109
|
type: zod_1.z.nativeEnum(integration_entity_model_1.IntegrationEntityType).optional(),
|
|
110
|
+
scope: zod_1.z.nativeEnum(models_1.ContactScope).optional(),
|
|
108
111
|
});
|
|
109
112
|
//# sourceMappingURL=contacts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts.js","sourceRoot":"","sources":["../../src/schemas/contacts.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iFAA2E,CAAC,oDAAoD;
|
|
1
|
+
{"version":3,"file":"contacts.js","sourceRoot":"","sources":["../../src/schemas/contacts.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iFAA2E,CAAC,oDAAoD;AAChI,sCAAyC;AAEzC,oDAAoD;AACpD,uBAAuB;AACvB,mBAAmB;AACnB,aAAa;AACb,sBAAsB;AACtB,oBAAoB;AACpB,4BAA4B;AAC5B,cAAc;AACd,0BAA0B;AAC1B,WAAW;AACX,iBAAiB;AACjB,oCAAoC;AACpC,WAAW;AACX,wBAAwB;AACxB,oCAAoC;AACpC,WAAW;AACX,sBAAsB;AACtB,oCAAoC;AACpC,WAAW;AACX,qBAAqB;AACrB,oCAAoC;AACpC,WAAW;AACX,gBAAgB;AAChB,oCAAoC;AACpC,WAAW;AACX,qBAAqB;AACrB,oCAAoC;AACpC,WAAW;AACX,oBAAoB;AACpB,oCAAoC;AACpC,WAAW;AACX,oBAAoB;AACpB,6BAA6B;AAC7B,WAAW;AACX,wBAAwB;AACxB,yBAAyB;AACzB,mBAAmB;AACnB,4BAA4B;AAC5B,0BAA0B;AAC1B,kCAAkC;AAClC,uBAAuB;AACvB,gCAAgC;AAChC,iBAAiB;AACjB,6BAA6B;AAC7B,gCAAgC;AAChC,iBAAiB;AACjB,eAAe;AACf,gDAAgD;AAChD,aAAa;AACb,WAAW;AACX,SAAS;AACT,kBAAkB;AAClB,cAAc;AACd,gBAAgB;AAChB,qBAAqB;AACrB,oBAAoB;AACpB,iBAAiB;AACjB,w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