@aldb2b/common 1.0.76 → 1.0.79

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,10 @@
1
+ import { Subjects } from './subjects';
2
+ export declare namespace MeetingCountByUser {
3
+ interface Context {
4
+ subject: Subjects.MeetingCount;
5
+ data: Data;
6
+ }
7
+ interface Data {
8
+ userId: string;
9
+ }
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=meeting-count-by-user.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meeting-count-by-user.interface.js","sourceRoot":"","sources":["../../src/events/meeting-count-by-user.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import { Subjects } from './subjects';
2
+ export declare namespace MeetingRequestedUsers {
3
+ interface Context {
4
+ subject: Subjects.MeetingRequestedUsers;
5
+ data: Data;
6
+ }
7
+ interface Data {
8
+ contactIds: string[];
9
+ }
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=meeting-requested-users.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meeting-requested-users.interface.js","sourceRoot":"","sources":["../../src/events/meeting-requested-users.interface.ts"],"names":[],"mappings":""}
@@ -15,5 +15,7 @@ export declare enum Subjects {
15
15
  SendEmails = "sendEmails",
16
16
  CreateCompanySetting = "comapnySetting:created",
17
17
  UpdateCompanySetting = "comapnySetting:updated",
18
- ContactsBySearch = "contactsBySearch"
18
+ ContactsBySearch = "contactsBySearch",
19
+ MeetingRequestedUsers = "meetingRequestedUsers",
20
+ MeetingCount = "MeetingCount"
19
21
  }
@@ -20,5 +20,7 @@ var Subjects;
20
20
  Subjects["CreateCompanySetting"] = "comapnySetting:created";
21
21
  Subjects["UpdateCompanySetting"] = "comapnySetting:updated";
22
22
  Subjects["ContactsBySearch"] = "contactsBySearch";
23
+ Subjects["MeetingRequestedUsers"] = "meetingRequestedUsers";
24
+ Subjects["MeetingCount"] = "MeetingCount";
23
25
  })(Subjects = exports.Subjects || (exports.Subjects = {}));
24
26
  //# sourceMappingURL=subjects.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subjects.js","sourceRoot":"","sources":["../../src/events/subjects.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAkBX;AAlBD,WAAY,QAAQ;IAClB,yCAA6B,CAAA;IAC7B,mCAAuB,CAAA;IACvB,4CAAgC,CAAA;IAChC,iCAAqB,CAAA;IACrB,+CAAmC,CAAA;IACnC,+CAAmC,CAAA;IACnC,6CAAiC,CAAA;IACjC,4CAAgC,CAAA;IAChC,4CAAgC,CAAA;IAChC,gDAAoC,CAAA;IACpC,4DAAgD,CAAA;IAChD,wDAA4C,CAAA;IAC5C,yDAA6C,CAAA;IAC7C,qCAAyB,CAAA;IACzB,2DAA+C,CAAA;IAC/C,2DAA+C,CAAA;IAC/C,iDAAqC,CAAA;AACvC,CAAC,EAlBW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAkBnB"}
1
+ {"version":3,"file":"subjects.js","sourceRoot":"","sources":["../../src/events/subjects.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAoBX;AApBD,WAAY,QAAQ;IAClB,yCAA6B,CAAA;IAC7B,mCAAuB,CAAA;IACvB,4CAAgC,CAAA;IAChC,iCAAqB,CAAA;IACrB,+CAAmC,CAAA;IACnC,+CAAmC,CAAA;IACnC,6CAAiC,CAAA;IACjC,4CAAgC,CAAA;IAChC,4CAAgC,CAAA;IAChC,gDAAoC,CAAA;IACpC,4DAAgD,CAAA;IAChD,wDAA4C,CAAA;IAC5C,yDAA6C,CAAA;IAC7C,qCAAyB,CAAA;IACzB,2DAA+C,CAAA;IAC/C,2DAA+C,CAAA;IAC/C,iDAAqC,CAAA;IACrC,2DAA+C,CAAA;IAC/C,yCAA6B,CAAA;AAC/B,CAAC,EApBW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAoBnB"}
package/build/index.d.ts CHANGED
@@ -16,6 +16,8 @@ export * from './events/send-emails.interface';
16
16
  export * from './events/create-company-setting.interface';
17
17
  export * from './events/update-company-setting.interface';
18
18
  export * from './events/contacts-by-search.interface';
19
+ export * from './events/meeting-requested-users.interface';
20
+ export * from './events/meeting-count-by-user.interface';
19
21
  export * from './validators/conditional-required';
20
22
  export * from './validators/date-validator';
21
23
  export * from './validators/validateNewItem';
package/build/index.js CHANGED
@@ -28,6 +28,8 @@ __exportStar(require("./events/send-emails.interface"), exports);
28
28
  __exportStar(require("./events/create-company-setting.interface"), exports);
29
29
  __exportStar(require("./events/update-company-setting.interface"), exports);
30
30
  __exportStar(require("./events/contacts-by-search.interface"), exports);
31
+ __exportStar(require("./events/meeting-requested-users.interface"), exports);
32
+ __exportStar(require("./events/meeting-count-by-user.interface"), exports);
31
33
  __exportStar(require("./validators/conditional-required"), exports);
32
34
  __exportStar(require("./validators/date-validator"), exports);
33
35
  __exportStar(require("./validators/validateNewItem"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiC;AACjC,iEAA8C;AAC9C,mEAAgD;AAChD,+DAA4C;AAC5C,oEAAiD;AACjD,qEAAkD;AAClD,oEAAiD;AACjD,sEAAmD;AACnD,6EAA0D;AAC1D,uEAAoD;AACpD,sEAAmD;AACnD,6EAA0D;AAC1D,2EAAwD;AACxD,4EAAyD;AACzD,iEAA8C;AAC9C,4EAAyD;AACzD,4EAAyD;AACzD,wEAAqD;AAErD,oEAAiD;AACjD,8DAA2C;AAC3C,+DAA4C;AAC5C,kEAA+C;AAC/C,wEAAqD;AACrD,kEAA+C;AAC/C,gFAA6D;AAC7D,+DAA4C;AAC5C,yEAAsD;AACtD,mFAAgE;AAChE,iFAA8D;AAC9D,iEAA8C;AAC9C,2EAAwD;AAExD,kE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;AACtC,gEAA6C;AAC7C,yEAAsD;AACtD,2EAAwD;AACxD,4DAAyC;AACzC,0EAAuD;AACvD,0DAAuC;AACvC,gEAA6C;AAC7C,0DAAuC;AACvC,qEAAkD;AAClD,qEAAkD;AAClD,+DAA4C;AAE5C,+DAA4C;AAC5C,sEAAmD;AAEnD,qEAAkD;AAClD,6DAA0C;AAC1C,uDAAoC;AACpC,sDAAmC;AACnC,qDAAkC;AAClC,mDAAgC"}
@@ -162,8 +162,8 @@
162
162
  "affectsGlobalScope": false
163
163
  },
164
164
  "../src/events/subjects.ts": {
165
- "version": "637eb4bc93f16ae6c9f8b8dc1c1e53b6532936adb7be59fefd78743564ddad75",
166
- "signature": "625391f156829e5032a9c754dc722b9f8be68901a388999dcc07418cb589ded0",
165
+ "version": "e0c9393a338133d702f70717a59ede3ca4162de5848ca73a8356a9d808367eed",
166
+ "signature": "f2934dceb4ba561fbfb2465843275b5a7edf6ce0714c0e763f26a54c0fdcec06",
167
167
  "affectsGlobalScope": false
168
168
  },
169
169
  "../src/events/email-specs.interface.ts": {
@@ -281,6 +281,16 @@
281
281
  "signature": "e674621ca678814a98084e7d24df5f1342d4235c1ada4f05a7bdff4183e8e529",
282
282
  "affectsGlobalScope": false
283
283
  },
284
+ "../src/events/meeting-requested-users.interface.ts": {
285
+ "version": "e1ada42e09862c94511ab727304e31b240db29f004cacbedebc4b1f5bb375f03",
286
+ "signature": "6769fdaada54e8d725541a9e74baeeacfdd36e986af5a0a781ee2bc4025f33e0",
287
+ "affectsGlobalScope": false
288
+ },
289
+ "../src/events/meeting-count-by-user.interface.ts": {
290
+ "version": "bfb39b7e95ed66a3ddcbd5a8c758232cb870bfaaf0bafeab7f369c14e07976a8",
291
+ "signature": "7c6f96db6da3ec246b8a38679eccc7ad2dc7bccf843a2b4433ea4747a2d8f645",
292
+ "affectsGlobalScope": false
293
+ },
284
294
  "../node_modules/class-validator/types/validation/ValidationError.d.ts": {
285
295
  "version": "e69d0b59db23f59172cb087ee44a71438f809bd214d4f4105abd6090b341cbdc",
286
296
  "signature": "e69d0b59db23f59172cb087ee44a71438f809bd214d4f4105abd6090b341cbdc",
@@ -952,7 +962,7 @@
952
962
  "affectsGlobalScope": false
953
963
  },
954
964
  "../src/validators/responses/error.ts": {
955
- "version": "702ed0693b34126de05f57c2b34b951b2cf985bf75fd42c82734bcab8a1d9de7",
965
+ "version": "61fdedec7a793d193c1d3bde2c949f3a727d6fccd9e84251522dc26239d4c80d",
956
966
  "signature": "f6a8b4e6d49ee03ec0056d2c0faaea725c6a15a5718a2cd0771e36f9e5affa76",
957
967
  "affectsGlobalScope": false
958
968
  },
@@ -5982,8 +5992,8 @@
5982
5992
  "affectsGlobalScope": false
5983
5993
  },
5984
5994
  "../src/index.ts": {
5985
- "version": "122bb6d7b590293c04b1cf566a352350c2eeb33f012bba7eddf2ded4026a1001",
5986
- "signature": "bbe430742d13689820b08db2d9d5c4e35b1e0cf909f87833bc3f95a0df3eaa38",
5995
+ "version": "d884d6d45c139323dab766ec664f89871817cfe3f63e7c8d69f8641c891835a8",
5996
+ "signature": "290f90ce3c185b8f34394327bb65828ab7c6754d448a9e43d3e7f9a6a8ab0c0d",
5987
5997
  "affectsGlobalScope": false
5988
5998
  },
5989
5999
  "../node_modules/@types/minimatch/index.d.ts": {
@@ -10733,9 +10743,15 @@
10733
10743
  "../src/events/subjects.ts",
10734
10744
  "../src/types/operation-types.ts"
10735
10745
  ],
10746
+ "../src/events/meeting-count-by-user.interface.ts": [
10747
+ "../src/events/subjects.ts"
10748
+ ],
10736
10749
  "../src/events/meeting-request-created.interface.ts": [
10737
10750
  "../src/events/subjects.ts"
10738
10751
  ],
10752
+ "../src/events/meeting-requested-users.interface.ts": [
10753
+ "../src/events/subjects.ts"
10754
+ ],
10739
10755
  "../src/events/send-emails.interface.ts": [
10740
10756
  "../src/events/subjects.ts"
10741
10757
  ],
@@ -10770,7 +10786,9 @@
10770
10786
  "../src/events/get-unavailable-by-user.interface.ts",
10771
10787
  "../src/events/groups-by-company.interface.ts",
10772
10788
  "../src/events/manage-asseccibillity.interface.ts",
10789
+ "../src/events/meeting-count-by-user.interface.ts",
10773
10790
  "../src/events/meeting-request-created.interface.ts",
10791
+ "../src/events/meeting-requested-users.interface.ts",
10774
10792
  "../src/events/send-emails.interface.ts",
10775
10793
  "../src/events/subjects.ts",
10776
10794
  "../src/events/update-company-setting.interface.ts",
@@ -15553,9 +15571,15 @@
15553
15571
  "../src/events/subjects.ts",
15554
15572
  "../src/types/operation-types.ts"
15555
15573
  ],
15574
+ "../src/events/meeting-count-by-user.interface.ts": [
15575
+ "../src/events/subjects.ts"
15576
+ ],
15556
15577
  "../src/events/meeting-request-created.interface.ts": [
15557
15578
  "../src/events/subjects.ts"
15558
15579
  ],
15580
+ "../src/events/meeting-requested-users.interface.ts": [
15581
+ "../src/events/subjects.ts"
15582
+ ],
15559
15583
  "../src/events/send-emails.interface.ts": [
15560
15584
  "../src/events/subjects.ts"
15561
15585
  ],
@@ -15590,7 +15614,9 @@
15590
15614
  "../src/events/get-unavailable-by-user.interface.ts",
15591
15615
  "../src/events/groups-by-company.interface.ts",
15592
15616
  "../src/events/manage-asseccibillity.interface.ts",
15617
+ "../src/events/meeting-count-by-user.interface.ts",
15593
15618
  "../src/events/meeting-request-created.interface.ts",
15619
+ "../src/events/meeting-requested-users.interface.ts",
15594
15620
  "../src/events/send-emails.interface.ts",
15595
15621
  "../src/events/subjects.ts",
15596
15622
  "../src/events/update-company-setting.interface.ts",
@@ -16835,7 +16861,9 @@
16835
16861
  "../src/events/get-unavailable-by-user.interface.ts",
16836
16862
  "../src/events/groups-by-company.interface.ts",
16837
16863
  "../src/events/manage-asseccibillity.interface.ts",
16864
+ "../src/events/meeting-count-by-user.interface.ts",
16838
16865
  "../src/events/meeting-request-created.interface.ts",
16866
+ "../src/events/meeting-requested-users.interface.ts",
16839
16867
  "../src/events/send-emails.interface.ts",
16840
16868
  "../src/events/subjects.ts",
16841
16869
  "../src/events/update-company-setting.interface.ts",
@@ -5,14 +5,16 @@ function error(err) {
5
5
  var _a;
6
6
  const error = ((_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.message)
7
7
  ? err.response.message
8
- : extractError(err) || err;
8
+ : err.stack
9
+ ? err.stack
10
+ : extractError(err) || err;
9
11
  return {
10
12
  success: false,
11
13
  error: error,
12
14
  };
13
15
  }
14
16
  exports.error = error;
15
- const extractError = (err) => {
17
+ const extractError = err => {
16
18
  if (err.errors) {
17
19
  for (const errorKey in err.errors) {
18
20
  if (err.errors[errorKey].message) {
@@ -1 +1 @@
1
- {"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/validators/responses/error.ts"],"names":[],"mappings":";;;AAEA,SAAgB,KAAK,CAAC,GAAG;;IACvB,MAAM,KAAK,GAAG,CAAA,MAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,QAAQ,0CAAE,OAAO;QAClC,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,OAAO;QACtB,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC;IAC7B,OAAO;QACL,OAAO,EAAE,KAAK;QACd,KAAK,EAAE,KAAK;KACb,CAAC;AACJ,CAAC;AARD,sBAQC;AAED,MAAM,YAAY,GAAG,CAAC,GAAG,EAAE,EAAE;IAC3B,IAAI,GAAG,CAAC,MAAM,EAAE;QACd,KAAK,MAAM,QAAQ,IAAI,GAAG,CAAC,MAAM,EAAE;YACjC,IAAI,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE;gBAChC,OAAO,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC;aACrC;SACF;KACF;SAAM;QACL,OAAO,KAAK,CAAC;KACd;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/validators/responses/error.ts"],"names":[],"mappings":";;;AAEA,SAAgB,KAAK,CAAC,GAAG;;IACvB,MAAM,KAAK,GAAG,CAAA,MAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,QAAQ,0CAAE,OAAO;QAClC,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,OAAO;QACtB,CAAC,CAAC,GAAG,CAAC,KAAK;YACX,CAAC,CAAC,GAAG,CAAC,KAAK;YACX,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,GAAG,CAAA;IAC5B,OAAO;QACL,OAAO,EAAE,KAAK;QACd,KAAK,EAAE,KAAK;KACb,CAAA;AACH,CAAC;AAVD,sBAUC;AAED,MAAM,YAAY,GAAG,GAAG,CAAC,EAAE;IACzB,IAAI,GAAG,CAAC,MAAM,EAAE;QACd,KAAK,MAAM,QAAQ,IAAI,GAAG,CAAC,MAAM,EAAE;YACjC,IAAI,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE;gBAChC,OAAO,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAA;aACpC;SACF;KACF;SAAM;QACL,OAAO,KAAK,CAAA;KACb;AACH,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aldb2b/common",
3
- "version": "1.0.76",
3
+ "version": "1.0.79",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",