@aldb2b/common 1.0.30 → 1.0.34

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.
@@ -9,6 +9,10 @@ export declare namespace MeetingRequestCreated {
9
9
  contactEmail: string;
10
10
  guestCompanyId: string;
11
11
  hostId: string;
12
+ hostCompanyId: string;
13
+ place: string;
14
+ type: string;
12
15
  requestedTimes: Date[];
16
+ stepId: string;
13
17
  }
14
18
  }
package/build/index.d.ts CHANGED
@@ -32,6 +32,8 @@ export * from './types/user-role.enum';
32
32
  export * from './types/header-user.interface';
33
33
  export * from './types/upload-presigned-url.interface';
34
34
  export * from './types/download-presigned-url.interface';
35
+ export * from './types/meeting-type.enum';
36
+ export * from './types/meeting-request-token.interface';
35
37
  export * from './middlewares/app.middleware';
36
38
  export * from './middlewares/authorizer.middleware';
37
39
  export * from './utils/create-default-directories';
package/build/index.js CHANGED
@@ -44,6 +44,8 @@ __exportStar(require("./types/user-role.enum"), exports);
44
44
  __exportStar(require("./types/header-user.interface"), exports);
45
45
  __exportStar(require("./types/upload-presigned-url.interface"), exports);
46
46
  __exportStar(require("./types/download-presigned-url.interface"), exports);
47
+ __exportStar(require("./types/meeting-type.enum"), exports);
48
+ __exportStar(require("./types/meeting-request-token.interface"), exports);
47
49
  __exportStar(require("./middlewares/app.middleware"), exports);
48
50
  __exportStar(require("./middlewares/authorizer.middleware"), exports);
49
51
  __exportStar(require("./utils/create-default-directories"), 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,oEAAiD;AACjD,oEAAiD;AACjD,sEAAmD;AACnD,6EAA0D;AAE1D,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,kEAA+C;AAE/C,sEAAmD;AACnD,uEAAoD;AAEpD,mDAAgC;AAChC,oDAAiC;AACjC,6DAA0C;AAE1C,gEAA6C;AAC7C,sEAAmD;AACnD,yDAAsC;AACtC,gEAA6C;AAC7C,yEAAsD;AACtD,2EAAwD;AAExD,+DAA4C;AAC5C,sEAAmD;AAEnD,qEAAkD;AAClD,6DAA0C;AAC1C,uDAAoC;AACpC,sDAAmC;AACnC,qDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiC;AACjC,iEAA8C;AAC9C,mEAAgD;AAChD,+DAA4C;AAC5C,oEAAiD;AACjD,oEAAiD;AACjD,oEAAiD;AACjD,sEAAmD;AACnD,6EAA0D;AAE1D,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,kEAA+C;AAE/C,sEAAmD;AACnD,uEAAoD;AAEpD,mDAAgC;AAChC,oDAAiC;AACjC,6DAA0C;AAE1C,gEAA6C;AAC7C,sEAAmD;AACnD,yDAAsC;AACtC,gEAA6C;AAC7C,yEAAsD;AACtD,2EAAwD;AACxD,4DAAyC;AACzC,0EAAuD;AAEvD,+DAA4C;AAC5C,sEAAmD;AAEnD,qEAAkD;AAClD,6DAA0C;AAC1C,uDAAoC;AACpC,sDAAmC;AACnC,qDAAkC"}
@@ -41,6 +41,7 @@ let AuthorizerMiddleware = class AuthorizerMiddleware {
41
41
  request.headers.type = resp.type;
42
42
  request.headers.role = resp.role;
43
43
  request.headers.email = resp.email;
44
+ request.headers.company = resp.company;
44
45
  }
45
46
  next();
46
47
  }
@@ -1 +1 @@
1
- {"version":3,"file":"authorizer.middleware.js","sourceRoot":"","sources":["../../src/middlewares/authorizer.middleware.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAKuB;AACvB,yDAAmD;AAEnD,+BAAqC;AAErC,iDAA6C;AAG7C,IAAa,oBAAoB,GAAjC,MAAa,oBAAoB;IAC/B,YAAqD,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IAE5E,KAAK,CAAC,GAAG,CACP,OAAgB,EAChB,QAAkB,EAClB,IAAkB;QAElB,MAAM,YAAY,GAA0B;YAC1C,OAAO,EAAE,mBAAQ,CAAC,aAAa;YAC/B,IAAI,EAAE;gBACJ,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI;gBACxB,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,aAAa,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;oBAC/D,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;oBACxC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC;aACxC;SACF,CAAA;QACD,MAAM,IAAI,GAAG,MAAM,qBAAc,CAC/B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,YAAY,CAAC,IAAI,CAAC,CAC1D,CAAA;QACD,IAAI,IAAI,CAAC,YAAY,KAAK,KAAK,EAAE;YAC/B,MAAM,IAAI,8BAAqB,EAAE,CAAA;SAClC;aAAM;YACL,OAAO,CAAC,OAAO,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAA;YAC5B,OAAO,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAA;YAChC,OAAO,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAA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AAM;YACL,OAAO,CAAC,OAAO,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAA;YAC5B,OAAO,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAA;YAChC,OAAO,CAAC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAA;YAChC,OAAO,CAAC,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAA;YAClC,OAAO,CAAC,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAA;SACvC;QACD,IAAI,EAAE,CAAA;IACR,CAAC;CACF,CAAA;AAhCY,oBAAoB;IADhC,mBAAU,EAAE;IAEE,WAAA,eAAM,CAAC,cAAc,CAAC,CAAA;qCAA0B,2BAAW;GAD7D,oBAAoB,CAgChC;AAhCY,oDAAoB"}
@@ -202,8 +202,8 @@
202
202
  "affectsGlobalScope": false
203
203
  },
204
204
  "../src/events/meeting-request-created.interface.ts": {
205
- "version": "df7741ac6ec89ddc6e67242804d8fad274d506216ec6646686c11412798f44bb",
206
- "signature": "e3d01f98a1739e9e1051b02b0b0ef81045711afae55747ae3ea37d11dc8ec838",
205
+ "version": "5e0fbe95d4bb34495458b4e44bc86f95b28c465d9b6f8d2b1be19bca007a3b7b",
206
+ "signature": "21ac8b273ca5bd38ec8d8114e4de06b3d4769c97c9281eefde5e16768701752e",
207
207
  "affectsGlobalScope": false
208
208
  },
209
209
  "../node_modules/class-validator/types/validation/ValidationError.d.ts": {
@@ -2837,8 +2837,8 @@
2837
2837
  "affectsGlobalScope": false
2838
2838
  },
2839
2839
  "../src/types/header-user.interface.ts": {
2840
- "version": "fb0659201a9bef34d7d679dd0c37e48d8e4a7abd34e638ca43d9c092ec25d0a6",
2841
- "signature": "4ec31f1bced56e2293218f122f995cb03f23886e4d57bde40d79ff83d6ba4a6a",
2840
+ "version": "71ca797cc5ca36441b320a804a7c5f575ac1a88cd9893ee44ef9f6fb2cc4c18c",
2841
+ "signature": "8553229b1a215b17605b6ee0f83aa88372934eeedf690b56440ca9104c9148f6",
2842
2842
  "affectsGlobalScope": false
2843
2843
  },
2844
2844
  "../src/decorators/get-user-decorator.ts": {
@@ -3251,6 +3251,16 @@
3251
3251
  "signature": "faf0a8dbab776c560b8caf050bcdb729107127038483ecf413dfb74c1fb5af7b",
3252
3252
  "affectsGlobalScope": false
3253
3253
  },
3254
+ "../src/types/meeting-type.enum.ts": {
3255
+ "version": "c44218d4d669e1a9bd4ca0b5f0589dab5d049c5090f1957777ba0c6431918e4c",
3256
+ "signature": "818eaf526f81c18722ea51f5c3f2d04939fa836b3a16608a1cd05a3a7a9fb9cb",
3257
+ "affectsGlobalScope": false
3258
+ },
3259
+ "../src/types/meeting-request-token.interface.ts": {
3260
+ "version": "0dc86d97fa4a607d8fa4a39e4616511723dbb40bb5c3e0033bf72db61f6b6f34",
3261
+ "signature": "211b49d543193409e7c24c07d2cd4cd597d8c53b2788cefc3485e4249587b3bd",
3262
+ "affectsGlobalScope": false
3263
+ },
3254
3264
  "../node_modules/@types/range-parser/index.d.ts": {
3255
3265
  "version": "16d51f964ec125ad2024cf03f0af444b3bc3ec3614d9345cc54d09bab45c9a4c",
3256
3266
  "signature": "16d51f964ec125ad2024cf03f0af444b3bc3ec3614d9345cc54d09bab45c9a4c",
@@ -3897,7 +3907,7 @@
3897
3907
  "affectsGlobalScope": false
3898
3908
  },
3899
3909
  "../src/middlewares/authorizer.middleware.ts": {
3900
- "version": "9b47048c61bcf01530df04034165b8a52bf2544d0d7e697cf48cc46fcbd328af",
3910
+ "version": "2f40be96dad166357f829ef0b3a6a04f13d0e275a72b6dfc72d7462f8a10a1a8",
3901
3911
  "signature": "a34d524864eb346e50b6f4f60c89af9f1efc69c1228db0498716287976aefda5",
3902
3912
  "affectsGlobalScope": false
3903
3913
  },
@@ -3922,8 +3932,8 @@
3922
3932
  "affectsGlobalScope": false
3923
3933
  },
3924
3934
  "../src/index.ts": {
3925
- "version": "e5439712f8595a2ad5457794e25d16443c289362feafd6b9a65ef4e586182f82",
3926
- "signature": "96c4b9afb693022a5ce75d1744bb9b44bd0437500774663fd4f379e3d7abd743",
3935
+ "version": "10dda901c7d435253c229d19088a74974d6d5530579b4a64418e1085d4f25f0b",
3936
+ "signature": "3515f649adc64e69b050a333a2f64f435eb651675bb340caaa2767a19affe431",
3927
3937
  "affectsGlobalScope": false
3928
3938
  },
3929
3939
  "../node_modules/@types/minimatch/index.d.ts": {
@@ -6981,6 +6991,8 @@
6981
6991
  "../src/middlewares/authorizer.middleware.ts",
6982
6992
  "../src/types/download-presigned-url.interface.ts",
6983
6993
  "../src/types/header-user.interface.ts",
6994
+ "../src/types/meeting-request-token.interface.ts",
6995
+ "../src/types/meeting-type.enum.ts",
6984
6996
  "../src/types/read-result.interface.ts",
6985
6997
  "../src/types/update-input-data.interface.ts",
6986
6998
  "../src/types/upload-presigned-url.interface.ts",
@@ -10048,6 +10060,8 @@
10048
10060
  "../src/middlewares/authorizer.middleware.ts",
10049
10061
  "../src/types/download-presigned-url.interface.ts",
10050
10062
  "../src/types/header-user.interface.ts",
10063
+ "../src/types/meeting-request-token.interface.ts",
10064
+ "../src/types/meeting-type.enum.ts",
10051
10065
  "../src/types/read-result.interface.ts",
10052
10066
  "../src/types/update-input-data.interface.ts",
10053
10067
  "../src/types/upload-presigned-url.interface.ts",
@@ -10876,6 +10890,8 @@
10876
10890
  "../src/middlewares/authorizer.middleware.ts",
10877
10891
  "../src/types/download-presigned-url.interface.ts",
10878
10892
  "../src/types/header-user.interface.ts",
10893
+ "../src/types/meeting-request-token.interface.ts",
10894
+ "../src/types/meeting-type.enum.ts",
10879
10895
  "../src/types/read-result.interface.ts",
10880
10896
  "../src/types/update-input-data.interface.ts",
10881
10897
  "../src/types/upload-presigned-url.interface.ts",
@@ -3,4 +3,5 @@ export interface HeaderUser {
3
3
  email: string;
4
4
  role: string;
5
5
  type: string;
6
+ company?: string;
6
7
  }
@@ -0,0 +1,6 @@
1
+ export interface MeetingRequestToken {
2
+ stepId: string;
3
+ userId: string;
4
+ type: string;
5
+ meetingRequestDate?: string;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=meeting-request-token.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meeting-request-token.interface.js","sourceRoot":"","sources":["../../src/types/meeting-request-token.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export declare enum MeetingType {
2
+ IN_PERSON = "In-person",
3
+ VIRTUAL = "Virtual"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MeetingType = void 0;
4
+ var MeetingType;
5
+ (function (MeetingType) {
6
+ MeetingType["IN_PERSON"] = "In-person";
7
+ MeetingType["VIRTUAL"] = "Virtual";
8
+ })(MeetingType = exports.MeetingType || (exports.MeetingType = {}));
9
+ //# sourceMappingURL=meeting-type.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meeting-type.enum.js","sourceRoot":"","sources":["../../src/types/meeting-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,sCAAuB,CAAA;IACvB,kCAAmB,CAAA;AACrB,CAAC,EAHW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAGtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aldb2b/common",
3
- "version": "1.0.30",
3
+ "version": "1.0.34",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",