@laboratory-one/api-components 0.0.14 → 0.0.15

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.
@@ -3,4 +3,5 @@ export * from './schemas';
3
3
  export * from './user.module';
4
4
  export * from './user.service';
5
5
  export * from './user.controller';
6
+ export * from './user.util';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["user/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["user/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC"}
@@ -6,4 +6,5 @@ tslib_1.__exportStar(require("./schemas"), exports);
6
6
  tslib_1.__exportStar(require("./user.module"), exports);
7
7
  tslib_1.__exportStar(require("./user.service"), exports);
8
8
  tslib_1.__exportStar(require("./user.controller"), exports);
9
+ tslib_1.__exportStar(require("./user.util"), exports);
9
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/","sources":["user/index.ts"],"names":[],"mappings":";;;AAAA,iDAAuB;AACvB,oDAA0B;AAC1B,wDAA8B;AAC9B,yDAA+B;AAC/B,4DAAkC","sourcesContent":["export * from './dtos';\nexport * from './schemas';\nexport * from './user.module';\nexport * from './user.service';\nexport * from './user.controller';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["user/index.ts"],"names":[],"mappings":";;;AAAA,iDAAuB;AACvB,oDAA0B;AAC1B,wDAA8B;AAC9B,yDAA+B;AAC/B,4DAAkC;AAClC,sDAA4B","sourcesContent":["export * from './dtos';\nexport * from './schemas';\nexport * from './user.module';\nexport * from './user.service';\nexport * from './user.controller';\nexport * from './user.util';\n"]}
@@ -0,0 +1,3 @@
1
+ import { User } from '@prisma/client';
2
+ export declare const getPushTokens: (users: User[]) => string[];
3
+ //# sourceMappingURL=user.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.util.d.ts","sourceRoot":"/","sources":["user/user.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEtC,eAAO,MAAM,aAAa,UAAW,IAAI,EAAE,KAAG,MAAM,EAEnD,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getPushTokens = void 0;
4
+ const getPushTokens = (users) => {
5
+ return users.map((user) => user.pushToken);
6
+ };
7
+ exports.getPushTokens = getPushTokens;
8
+ //# sourceMappingURL=user.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.util.js","sourceRoot":"/","sources":["user/user.util.ts"],"names":[],"mappings":";;;AAEO,MAAM,aAAa,GAAG,CAAC,KAAa,EAAY,EAAE;IACvD,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AAC7C,CAAC,CAAC;AAFW,QAAA,aAAa,iBAExB","sourcesContent":["import { User } from '@prisma/client';\n\nexport const getPushTokens = (users: User[]): string[] => {\n return users.map((user) => user.pushToken);\n};\n"]}
@@ -3,4 +3,5 @@ export * from './schemas';
3
3
  export * from './user.module';
4
4
  export * from './user.service';
5
5
  export * from './user.controller';
6
+ export * from './user.util';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["user/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["user/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC"}
@@ -3,4 +3,5 @@ export * from './schemas';
3
3
  export * from './user.module';
4
4
  export * from './user.service';
5
5
  export * from './user.controller';
6
+ export * from './user.util';
6
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/","sources":["user/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC","sourcesContent":["export * from './dtos';\nexport * from './schemas';\nexport * from './user.module';\nexport * from './user.service';\nexport * from './user.controller';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["user/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC","sourcesContent":["export * from './dtos';\nexport * from './schemas';\nexport * from './user.module';\nexport * from './user.service';\nexport * from './user.controller';\nexport * from './user.util';\n"]}
@@ -0,0 +1,3 @@
1
+ import { User } from '@prisma/client';
2
+ export declare const getPushTokens: (users: User[]) => string[];
3
+ //# sourceMappingURL=user.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.util.d.ts","sourceRoot":"/","sources":["user/user.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEtC,eAAO,MAAM,aAAa,UAAW,IAAI,EAAE,KAAG,MAAM,EAEnD,CAAC"}
@@ -0,0 +1,4 @@
1
+ export const getPushTokens = (users) => {
2
+ return users.map((user) => user.pushToken);
3
+ };
4
+ //# sourceMappingURL=user.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.util.js","sourceRoot":"/","sources":["user/user.util.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAa,EAAY,EAAE;IACvD,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AAC7C,CAAC,CAAC","sourcesContent":["import { User } from '@prisma/client';\n\nexport const getPushTokens = (users: User[]): string[] => {\n return users.map((user) => user.pushToken);\n};\n"]}