cv-contracts 0.0.19 → 0.0.20

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.
@@ -0,0 +1,11 @@
1
+ export interface User {
2
+ _id: string;
3
+ self_link: string;
4
+ first_name: string;
5
+ last_name?: string;
6
+ full_name: string;
7
+ image_url?: string;
8
+ created_at: string;
9
+ phones?: string[];
10
+ emails?: string[];
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=User.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"User.js","sourceRoot":"","sources":["../../src/interfaces/User.ts"],"names":[],"mappings":""}
@@ -17,3 +17,4 @@ export * from './WorkspaceUserRemoved';
17
17
  export * from './SubscriptionFilter';
18
18
  export * from './Label';
19
19
  export * from './Attachment';
20
+ export * from './User';
@@ -33,4 +33,5 @@ __exportStar(require("./WorkspaceUserRemoved"), exports);
33
33
  __exportStar(require("./SubscriptionFilter"), exports);
34
34
  __exportStar(require("./Label"), exports);
35
35
  __exportStar(require("./Attachment"), exports);
36
+ __exportStar(require("./User"), exports);
36
37
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,8CAA4B;AAC5B,4CAA0B;AAC1B,sDAAoC;AACpC,oDAAkC;AAClC,uDAAqC;AACrC,sDAAoC;AACpC,4CAA0B;AAC1B,2DAAyC;AACzC,mDAAiC;AACjC,8CAA4B;AAC5B,oEAAkD;AAClD,uDAAqC;AACrC,wDAAsC;AACtC,sDAAoC;AACpC,yDAAuC;AACvC,uDAAqC;AACrC,0CAAwB;AACxB,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,8CAA4B;AAC5B,4CAA0B;AAC1B,sDAAoC;AACpC,oDAAkC;AAClC,uDAAqC;AACrC,sDAAoC;AACpC,4CAA0B;AAC1B,2DAAyC;AACzC,mDAAiC;AACjC,8CAA4B;AAC5B,oEAAkD;AAClD,uDAAqC;AACrC,wDAAsC;AACtC,sDAAoC;AACpC,yDAAuC;AACvC,uDAAqC;AACrC,0CAAwB;AACxB,+CAA6B;AAC7B,yCAAuB"}
@@ -0,0 +1,52 @@
1
+ export declare const UserSchema: {
2
+ type: string;
3
+ properties: {
4
+ _id: {
5
+ type: string;
6
+ };
7
+ self_link: {
8
+ type: string;
9
+ };
10
+ first_name: {
11
+ type: string;
12
+ };
13
+ last_name: {
14
+ type: string;
15
+ };
16
+ full_name: {
17
+ type: string;
18
+ };
19
+ image_url: {
20
+ type: string;
21
+ };
22
+ created_at: {
23
+ type: string;
24
+ };
25
+ phones: {
26
+ type: string;
27
+ items: {
28
+ type: string;
29
+ };
30
+ };
31
+ emails: {
32
+ type: string;
33
+ items: {
34
+ type: string;
35
+ };
36
+ };
37
+ };
38
+ additionalProperties: boolean;
39
+ required: string[];
40
+ $schema: string;
41
+ };
42
+ export declare enum UserKeys {
43
+ _id = "_id",
44
+ self_link = "self_link",
45
+ first_name = "first_name",
46
+ last_name = "last_name",
47
+ full_name = "full_name",
48
+ image_url = "image_url",
49
+ created_at = "created_at",
50
+ phones = "phones",
51
+ emails = "emails"
52
+ }
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserKeys = exports.UserSchema = void 0;
4
+ exports.UserSchema = {
5
+ type: 'object',
6
+ properties: {
7
+ _id: {
8
+ type: 'string',
9
+ },
10
+ self_link: {
11
+ type: 'string',
12
+ },
13
+ first_name: {
14
+ type: 'string',
15
+ },
16
+ last_name: {
17
+ type: 'string',
18
+ },
19
+ full_name: {
20
+ type: 'string',
21
+ },
22
+ image_url: {
23
+ type: 'string',
24
+ },
25
+ created_at: {
26
+ type: 'string',
27
+ },
28
+ phones: {
29
+ type: 'array',
30
+ items: {
31
+ type: 'string',
32
+ },
33
+ },
34
+ emails: {
35
+ type: 'array',
36
+ items: {
37
+ type: 'string',
38
+ },
39
+ },
40
+ },
41
+ additionalProperties: false,
42
+ required: ['_id', 'created_at', 'first_name', 'full_name', 'self_link'],
43
+ $schema: 'http://json-schema.org/draft-07/schema#',
44
+ };
45
+ var UserKeys;
46
+ (function (UserKeys) {
47
+ UserKeys["_id"] = "_id";
48
+ UserKeys["self_link"] = "self_link";
49
+ UserKeys["first_name"] = "first_name";
50
+ UserKeys["last_name"] = "last_name";
51
+ UserKeys["full_name"] = "full_name";
52
+ UserKeys["image_url"] = "image_url";
53
+ UserKeys["created_at"] = "created_at";
54
+ UserKeys["phones"] = "phones";
55
+ UserKeys["emails"] = "emails";
56
+ })(UserKeys = exports.UserKeys || (exports.UserKeys = {}));
57
+ //# sourceMappingURL=UserSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserSchema.js","sourceRoot":"","sources":["../../src/schemas/UserSchema.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACxB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,GAAG,EAAE;YACH,IAAI,EAAE,QAAQ;SACf;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;SACf;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;SACf;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;SACf;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;SACf;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;SACf;QACD,MAAM,EAAE;YACN,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;aACf;SACF;QACD,MAAM,EAAE;YACN,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;aACf;SACF;KACF;IACD,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,CAAC;IACvE,OAAO,EAAE,yCAAyC;CACnD,CAAC;AAEF,IAAY,QAUX;AAVD,WAAY,QAAQ;IAClB,uBAAW,CAAA;IACX,mCAAuB,CAAA;IACvB,qCAAyB,CAAA;IACzB,mCAAuB,CAAA;IACvB,mCAAuB,CAAA;IACvB,mCAAuB,CAAA;IACvB,qCAAyB,CAAA;IACzB,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;AACnB,CAAC,EAVW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAUnB"}
@@ -10,6 +10,7 @@ export * from './LabelSchema';
10
10
  export * from './MessageSchema';
11
11
  export * from './SubscribedUserSettingsSchema';
12
12
  export * from './SubscriptionFilterSchema';
13
+ export * from './UserSchema';
13
14
  export * from './WebhookPayloadSchema';
14
15
  export * from './WorkspaceSchema';
15
16
  export * from './WorkspaceFindableChannelCreatedSchema';
@@ -26,6 +26,7 @@ __exportStar(require("./LabelSchema"), exports);
26
26
  __exportStar(require("./MessageSchema"), exports);
27
27
  __exportStar(require("./SubscribedUserSettingsSchema"), exports);
28
28
  __exportStar(require("./SubscriptionFilterSchema"), exports);
29
+ __exportStar(require("./UserSchema"), exports);
29
30
  __exportStar(require("./WebhookPayloadSchema"), exports);
30
31
  __exportStar(require("./WorkspaceSchema"), exports);
31
32
  __exportStar(require("./WorkspaceFindableChannelCreatedSchema"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,qDAAmC;AACnC,oDAAkC;AAClC,kDAAgC;AAChC,4DAA0C;AAC1C,0DAAwC;AACxC,6DAA2C;AAC3C,4DAA0C;AAC1C,gDAA8B;AAC9B,kDAAgC;AAChC,iEAA+C;AAC/C,6DAA2C;AAC3C,yDAAuC;AACvC,oDAAkC;AAClC,0EAAwD;AACxD,6DAA2C;AAC3C,8DAA4C;AAC5C,4DAA0C;AAC1C,+DAA6C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,qDAAmC;AACnC,oDAAkC;AAClC,kDAAgC;AAChC,4DAA0C;AAC1C,0DAAwC;AACxC,6DAA2C;AAC3C,4DAA0C;AAC1C,gDAA8B;AAC9B,kDAAgC;AAChC,iEAA+C;AAC/C,6DAA2C;AAC3C,+CAA6B;AAC7B,yDAAuC;AACvC,oDAAkC;AAClC,0EAAwD;AACxD,6DAA2C;AAC3C,8DAA4C;AAC5C,4DAA0C;AAC1C,+DAA6C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cv-contracts",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "Carbon Voice Contracts",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",