@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.
- package/build/decorators/get-user-decorator.js +2 -2
- package/build/decorators/get-user-decorator.js.map +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/index.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +13 -5
- package/build/types/meeting-type.enum.d.ts +3 -1
- package/build/types/meeting-type.enum.js +3 -1
- package/build/types/meeting-type.enum.js.map +1 -1
- package/build/utils/timezone.d.ts +2 -0
- package/build/utils/timezone.js +15 -0
- package/build/utils/timezone.js.map +1 -0
- package/package.json +1 -1
|
@@ -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,
|
|
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
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
|
package/build/index.js.map
CHANGED
|
@@ -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": "
|
|
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": "
|
|
3291
|
-
"signature": "
|
|
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": "
|
|
5916
|
-
"signature": "
|
|
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",
|
|
@@ -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["
|
|
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,
|
|
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,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"}
|