@aldb2b/common 1.0.47 → 1.0.51

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.
@@ -4,10 +4,10 @@ exports.GetUser = void 0;
4
4
  const common_1 = require("@nestjs/common");
5
5
  exports.GetUser = common_1.createParamDecorator((data, ctx) => {
6
6
  const req = ctx.switchToHttp().getRequest();
7
- const { id, email, role, type } = req.headers;
7
+ const { id, email, role, type, company } = req.headers;
8
8
  if (!id || !email || !role || !type) {
9
9
  throw new common_1.BadRequestException('Invalid header');
10
10
  }
11
- return { id, email, role, type };
11
+ return { id, email, role, type, company };
12
12
  });
13
13
  //# sourceMappingURL=get-user-decorator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-decorator.js","sourceRoot":"","sources":["../../src/decorators/get-user-decorator.ts"],"names":[],"mappings":";;;AAAA,2CAIwB;AAKX,QAAA,OAAO,GAAG,6BAAoB,CACzC,CAAC,IAAI,EAAE,GAAqB,EAAc,EAAE;IAC1C,MAAM,GAAG,GAAG,GAAG,CAAC,YAAY,EAAE,CAAC,UAAU,EAAE,CAAC;IAC5C,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,OAAO,CAAC;IAC9C,IAAI,CAAC,EAAE,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,EAAE;QACnC,MAAM,IAAI,4BAAmB,CAAC,gBAAgB,CAAC,CAAC;KACjD;IACD,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AACnC,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"get-user-decorator.js","sourceRoot":"","sources":["../../src/decorators/get-user-decorator.ts"],"names":[],"mappings":";;;AAAA,2CAIuB;AAGV,QAAA,OAAO,GAAG,6BAAoB,CACzC,CAAC,IAAI,EAAE,GAAqB,EAAc,EAAE;IAC1C,MAAM,GAAG,GAAG,GAAG,CAAC,YAAY,EAAE,CAAC,UAAU,EAAE,CAAA;IAC3C,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,GAAG,CAAC,OAAO,CAAA;IACtD,IAAI,CAAC,EAAE,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,EAAE;QACnC,MAAM,IAAI,4BAAmB,CAAC,gBAAgB,CAAC,CAAA;KAChD;IACD,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAA;AAC3C,CAAC,CACF,CAAA"}
package/build/index.d.ts CHANGED
@@ -47,3 +47,4 @@ export * from './utils/equal-array-object';
47
47
  export * from './utils/equal-object';
48
48
  export * from './utils/parse-query';
49
49
  export * from './utils/projection';
50
+ export * from './utils/timezone';
package/build/index.js CHANGED
@@ -59,4 +59,5 @@ __exportStar(require("./utils/equal-array-object"), exports);
59
59
  __exportStar(require("./utils/equal-object"), exports);
60
60
  __exportStar(require("./utils/parse-query"), exports);
61
61
  __exportStar(require("./utils/projection"), exports);
62
+ __exportStar(require("./utils/timezone"), exports);
62
63
  //# sourceMappingURL=index.js.map
@@ -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;AAC1D,uEAAoD;AACpD,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;AAC1C,oEAAiD;AACjD,yEAAsD;AAEtD,gEAA6C;AAC7C,sEAAmD;AACnD,yDAAsC;AACtC,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"}
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;AAC1D,uEAAoD;AACpD,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;AAC1C,oEAAiD;AACjD,yEAAsD;AAEtD,gEAA6C;AAC7C,sEAAmD;AACnD,yDAAsC;AACtC,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;AAClC,mDAAgC"}
@@ -2857,7 +2857,7 @@
2857
2857
  "affectsGlobalScope": false
2858
2858
  },
2859
2859
  "../src/decorators/get-user-decorator.ts": {
2860
- "version": "bad64eada6c7a1bbf9a47709607f602ac0200785f5ecfb4ea5b1e938f4f70624",
2860
+ "version": "980c83fdba0facd2e0b8289d5f2aaf5b4619e07abe85ddc6829fc186ba670bd1",
2861
2861
  "signature": "2edbd67ef5c8b5f94d7abaea90ab48657ff66e5277a1409c425ff253daa65751",
2862
2862
  "affectsGlobalScope": false
2863
2863
  },
@@ -3287,8 +3287,8 @@
3287
3287
  "affectsGlobalScope": false
3288
3288
  },
3289
3289
  "../src/types/meeting-type.enum.ts": {
3290
- "version": "c44218d4d669e1a9bd4ca0b5f0589dab5d049c5090f1957777ba0c6431918e4c",
3291
- "signature": "818eaf526f81c18722ea51f5c3f2d04939fa836b3a16608a1cd05a3a7a9fb9cb",
3290
+ "version": "54b3ebb3eaa163f5e1f59558522cbd8a4af614f083016537841ebe283b07d755",
3291
+ "signature": "2cb14c4e28898615d60f2a24630365df730c32e22cc16abdce5ee1fe97fbd5d5",
3292
3292
  "affectsGlobalScope": false
3293
3293
  },
3294
3294
  "../src/types/meeting-request-token.interface.ts": {
@@ -5911,9 +5911,14 @@
5911
5911
  "signature": "c6771ad2f66de3dd265f78b1c598104d729347d19c2643dd3d72ef995c77f2f5",
5912
5912
  "affectsGlobalScope": false
5913
5913
  },
5914
+ "../src/utils/timezone.ts": {
5915
+ "version": "fb26dfe094d2858441d26da6dcf76f6faabd8b26abefa6bf72931296ebc53f2c",
5916
+ "signature": "852d22b385636be57f45c9dc75d7ba444edc92c2a324416cfc2d0f7ada990f16",
5917
+ "affectsGlobalScope": false
5918
+ },
5914
5919
  "../src/index.ts": {
5915
- "version": "cf71991b0ebcec53d570aad7b116befbfe33407bb23201208590e832637c20b4",
5916
- "signature": "d818cecfc153e8c5ca764b84958870a6391655fbde24c3b7665c421b20dafeee",
5920
+ "version": "9f8cb0f8fab755a3e01de472cba600fe02070f868d3ad578ac7ba00c53cb057f",
5921
+ "signature": "beed2863d90c191501fdd400094520b45ff89b10e105b4b0b7d42040bc6b8e09",
5917
5922
  "affectsGlobalScope": false
5918
5923
  },
5919
5924
  "../node_modules/@types/minimatch/index.d.ts": {
@@ -10687,6 +10692,7 @@
10687
10692
  "../src/utils/equal-object.ts",
10688
10693
  "../src/utils/parse-query.ts",
10689
10694
  "../src/utils/projection.ts",
10695
+ "../src/utils/timezone.ts",
10690
10696
  "../src/validators/conditional-required.ts",
10691
10697
  "../src/validators/date-validator.ts",
10692
10698
  "../src/validators/responses/customizeArrayResponse.ts",
@@ -15461,6 +15467,7 @@
15461
15467
  "../src/utils/equal-object.ts",
15462
15468
  "../src/utils/parse-query.ts",
15463
15469
  "../src/utils/projection.ts",
15470
+ "../src/utils/timezone.ts",
15464
15471
  "../src/validators/conditional-required.ts",
15465
15472
  "../src/validators/date-validator.ts",
15466
15473
  "../src/validators/responses/customizeArrayResponse.ts",
@@ -16687,6 +16694,7 @@
16687
16694
  "../src/utils/equal-object.ts",
16688
16695
  "../src/utils/parse-query.ts",
16689
16696
  "../src/utils/projection.ts",
16697
+ "../src/utils/timezone.ts",
16690
16698
  "../src/validators/conditional-required.ts",
16691
16699
  "../src/validators/date-validator.ts",
16692
16700
  "../src/validators/responses/customizeArrayResponse.ts",
@@ -1,4 +1,6 @@
1
1
  export declare enum MeetingType {
2
2
  IN_PERSON = "In-person",
3
- VIRTUAL = "Virtual"
3
+ ZOOM = "Zoom",
4
+ TEAMS = "Teams",
5
+ ALADDIN_MEETING = "Aladdin Meeting"
4
6
  }
@@ -4,6 +4,8 @@ exports.MeetingType = void 0;
4
4
  var MeetingType;
5
5
  (function (MeetingType) {
6
6
  MeetingType["IN_PERSON"] = "In-person";
7
- MeetingType["VIRTUAL"] = "Virtual";
7
+ MeetingType["ZOOM"] = "Zoom";
8
+ MeetingType["TEAMS"] = "Teams";
9
+ MeetingType["ALADDIN_MEETING"] = "Aladdin Meeting";
8
10
  })(MeetingType = exports.MeetingType || (exports.MeetingType = {}));
9
11
  //# sourceMappingURL=meeting-type.enum.js.map
@@ -1 +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"}
1
+ {"version":3,"file":"meeting-type.enum.js","sourceRoot":"","sources":["../../src/types/meeting-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,sCAAuB,CAAA;IACvB,4BAAa,CAAA;IACb,8BAAe,CAAA;IACf,kDAAmC,CAAA;AACrC,CAAC,EALW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAKtB"}
@@ -0,0 +1,2 @@
1
+ export declare function setTimezone(tz?: string): string;
2
+ export declare function getTimezone(): string;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getTimezone = exports.setTimezone = void 0;
4
+ function setTimezone(tz) {
5
+ if (tz)
6
+ return process.env.TZ = tz;
7
+ else
8
+ return process.env.TZ = 'Etc/GMT';
9
+ }
10
+ exports.setTimezone = setTimezone;
11
+ function getTimezone() {
12
+ return Intl.DateTimeFormat().resolvedOptions().timeZone;
13
+ }
14
+ exports.getTimezone = getTimezone;
15
+ //# sourceMappingURL=timezone.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timezone.js","sourceRoot":"","sources":["../../src/utils/timezone.ts"],"names":[],"mappings":";;;AAAA,SAAgB,WAAW,CAAC,EAAW;IACnC,IAAI,EAAE;QAAE,OAAO,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC;;QAC9B,OAAO,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,SAAS,CAAC;AAC3C,CAAC;AAHD,kCAGC;AAED,SAAgB,WAAW;IACvB,OAAO,IAAI,CAAC,cAAc,EAAE,CAAC,eAAe,EAAE,CAAC,QAAQ,CAAC;AAC5D,CAAC;AAFD,kCAEC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aldb2b/common",
3
- "version": "1.0.47",
3
+ "version": "1.0.51",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",