@solidxai/core 0.1.9-beta.7 → 0.1.9

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.
Files changed (165) hide show
  1. package/LICENSE +89 -0
  2. package/README.md +3 -1
  3. package/dist/constants/chatter-message.constants.d.ts +6 -0
  4. package/dist/constants/chatter-message.constants.d.ts.map +1 -1
  5. package/dist/constants/chatter-message.constants.js +7 -1
  6. package/dist/constants/chatter-message.constants.js.map +1 -1
  7. package/dist/controllers/authentication.controller.d.ts +12 -0
  8. package/dist/controllers/authentication.controller.d.ts.map +1 -1
  9. package/dist/controllers/authentication.controller.js +13 -0
  10. package/dist/controllers/authentication.controller.js.map +1 -1
  11. package/dist/controllers/chatter-message.controller.d.ts +1 -0
  12. package/dist/controllers/chatter-message.controller.d.ts.map +1 -1
  13. package/dist/controllers/chatter-message.controller.js +12 -0
  14. package/dist/controllers/chatter-message.controller.js.map +1 -1
  15. package/dist/controllers/facebook-authentication.controller.d.ts +27 -0
  16. package/dist/controllers/facebook-authentication.controller.d.ts.map +1 -0
  17. package/dist/controllers/facebook-authentication.controller.js +117 -0
  18. package/dist/controllers/facebook-authentication.controller.js.map +1 -0
  19. package/dist/controllers/menu-item-metadata.controller.d.ts +1 -0
  20. package/dist/controllers/menu-item-metadata.controller.d.ts.map +1 -1
  21. package/dist/controllers/menu-item-metadata.controller.js +15 -0
  22. package/dist/controllers/menu-item-metadata.controller.js.map +1 -1
  23. package/dist/controllers/microsoft-authentication.controller.d.ts +27 -0
  24. package/dist/controllers/microsoft-authentication.controller.d.ts.map +1 -0
  25. package/dist/controllers/microsoft-authentication.controller.js +118 -0
  26. package/dist/controllers/microsoft-authentication.controller.js.map +1 -0
  27. package/dist/controllers/setting.controller.d.ts +2 -2
  28. package/dist/controllers/setting.controller.js +2 -2
  29. package/dist/decorators/auth.decorator.d.ts.map +1 -1
  30. package/dist/decorators/computed-field-provider.decorator.d.ts.map +1 -1
  31. package/dist/decorators/dashboard-question-data-provider.decorator.d.ts.map +1 -1
  32. package/dist/decorators/dashboard-selection-provider.decorator.d.ts.map +1 -1
  33. package/dist/decorators/disallow-in-production.decorator.d.ts.map +1 -1
  34. package/dist/decorators/error-codes-provider.decorator.d.ts.map +1 -1
  35. package/dist/decorators/extension-user-creation-provider.decorator.d.ts.map +1 -1
  36. package/dist/decorators/is-not-in-enum.decorator.d.ts.map +1 -1
  37. package/dist/decorators/mail-provider.decorator.d.ts.map +1 -1
  38. package/dist/decorators/roles.decorator.d.ts.map +1 -1
  39. package/dist/decorators/scheduled-job-provider.decorator.d.ts.map +1 -1
  40. package/dist/decorators/security-rule-config-provider.decorator.d.ts.map +1 -1
  41. package/dist/decorators/selection-provider.decorator.d.ts.map +1 -1
  42. package/dist/decorators/sms-provider.decorator.d.ts.map +1 -1
  43. package/dist/decorators/solid-database-module.decorator.d.ts.map +1 -1
  44. package/dist/decorators/whatsapp-provider.decorator.d.ts.map +1 -1
  45. package/dist/dtos/create-chatter-message.dto.d.ts +1 -0
  46. package/dist/dtos/create-chatter-message.dto.d.ts.map +1 -1
  47. package/dist/dtos/create-chatter-message.dto.js +7 -1
  48. package/dist/dtos/create-chatter-message.dto.js.map +1 -1
  49. package/dist/dtos/post-chatter-message.dto.d.ts +1 -0
  50. package/dist/dtos/post-chatter-message.dto.d.ts.map +1 -1
  51. package/dist/dtos/post-chatter-message.dto.js +6 -1
  52. package/dist/dtos/post-chatter-message.dto.js.map +1 -1
  53. package/dist/dtos/update-chatter-message.dto.d.ts +1 -0
  54. package/dist/dtos/update-chatter-message.dto.d.ts.map +1 -1
  55. package/dist/dtos/update-chatter-message.dto.js +7 -1
  56. package/dist/dtos/update-chatter-message.dto.js.map +1 -1
  57. package/dist/entities/chatter-message.entity.d.ts +1 -0
  58. package/dist/entities/chatter-message.entity.d.ts.map +1 -1
  59. package/dist/entities/chatter-message.entity.js +5 -1
  60. package/dist/entities/chatter-message.entity.js.map +1 -1
  61. package/dist/entities/user.entity.d.ts +8 -0
  62. package/dist/entities/user.entity.d.ts.map +1 -1
  63. package/dist/entities/user.entity.js +33 -1
  64. package/dist/entities/user.entity.js.map +1 -1
  65. package/dist/helpers/cors.helper.js +1 -1
  66. package/dist/helpers/cors.helper.js.map +1 -1
  67. package/dist/helpers/facebook-oauth.helper.d.ts +8 -0
  68. package/dist/helpers/facebook-oauth.helper.d.ts.map +1 -0
  69. package/dist/helpers/facebook-oauth.helper.js +11 -0
  70. package/dist/helpers/facebook-oauth.helper.js.map +1 -0
  71. package/dist/helpers/microsoft-oauth.helper.d.ts +9 -0
  72. package/dist/helpers/microsoft-oauth.helper.d.ts.map +1 -0
  73. package/dist/helpers/microsoft-oauth.helper.js +12 -0
  74. package/dist/helpers/microsoft-oauth.helper.js.map +1 -0
  75. package/dist/helpers/security.helper.d.ts.map +1 -1
  76. package/dist/helpers/string.helper.d.ts.map +1 -1
  77. package/dist/helpers/user-helper.d.ts.map +1 -1
  78. package/dist/helpers/user-helper.js +4 -0
  79. package/dist/helpers/user-helper.js.map +1 -1
  80. package/dist/index.d.ts +2 -0
  81. package/dist/index.d.ts.map +1 -1
  82. package/dist/index.js +2 -0
  83. package/dist/index.js.map +1 -1
  84. package/dist/interfaces.d.ts +19 -0
  85. package/dist/interfaces.d.ts.map +1 -1
  86. package/dist/interfaces.js.map +1 -1
  87. package/dist/passport-strategies/facebook-oauth.strategy.d.ts +16 -0
  88. package/dist/passport-strategies/facebook-oauth.strategy.d.ts.map +1 -0
  89. package/dist/passport-strategies/facebook-oauth.strategy.js +96 -0
  90. package/dist/passport-strategies/facebook-oauth.strategy.js.map +1 -0
  91. package/dist/passport-strategies/microsoft-oauth.strategy.d.ts +14 -0
  92. package/dist/passport-strategies/microsoft-oauth.strategy.d.ts.map +1 -0
  93. package/dist/passport-strategies/microsoft-oauth.strategy.js +77 -0
  94. package/dist/passport-strategies/microsoft-oauth.strategy.js.map +1 -0
  95. package/dist/seeders/seed-data/solid-core-metadata.json +27 -58
  96. package/dist/services/api-key.service.d.ts +17 -1
  97. package/dist/services/api-key.service.d.ts.map +1 -1
  98. package/dist/services/api-key.service.js +38 -2
  99. package/dist/services/api-key.service.js.map +1 -1
  100. package/dist/services/authentication.service.d.ts +61 -27
  101. package/dist/services/authentication.service.d.ts.map +1 -1
  102. package/dist/services/authentication.service.js +356 -164
  103. package/dist/services/authentication.service.js.map +1 -1
  104. package/dist/services/chatter-message.service.d.ts +1 -0
  105. package/dist/services/chatter-message.service.d.ts.map +1 -1
  106. package/dist/services/chatter-message.service.js +24 -7
  107. package/dist/services/chatter-message.service.js.map +1 -1
  108. package/dist/services/crud-helper.service.d.ts.map +1 -1
  109. package/dist/services/model-metadata.service.js +1 -1
  110. package/dist/services/model-metadata.service.js.map +1 -1
  111. package/dist/services/setting.service.d.ts +5 -2
  112. package/dist/services/setting.service.d.ts.map +1 -1
  113. package/dist/services/setting.service.js +51 -6
  114. package/dist/services/setting.service.js.map +1 -1
  115. package/dist/services/settings/default-settings-provider.service.d.ts +846 -0
  116. package/dist/services/settings/default-settings-provider.service.d.ts.map +1 -1
  117. package/dist/services/settings/default-settings-provider.service.js +1096 -117
  118. package/dist/services/settings/default-settings-provider.service.js.map +1 -1
  119. package/dist/services/user.service.d.ts +12 -8
  120. package/dist/services/user.service.d.ts.map +1 -1
  121. package/dist/services/user.service.js +143 -32
  122. package/dist/services/user.service.js.map +1 -1
  123. package/dist/solid-core.module.d.ts.map +1 -1
  124. package/dist/solid-core.module.js +11 -3
  125. package/dist/solid-core.module.js.map +1 -1
  126. package/dist/transformers/array-transformer.d.ts.map +1 -1
  127. package/dist/transformers/boolean-transformer.d.ts.map +1 -1
  128. package/dist/transformers/datetime-transformer.d.ts.map +1 -1
  129. package/dist/transformers/integer-transformer.d.ts.map +1 -1
  130. package/dist/validators/is-parsable-int.d.ts.map +1 -1
  131. package/nest +0 -0
  132. package/package.json +8 -2
  133. package/src/constants/chatter-message.constants.ts +7 -0
  134. package/src/controllers/authentication.controller.ts +8 -1
  135. package/src/controllers/chatter-message.controller.ts +6 -0
  136. package/src/controllers/facebook-authentication.controller.ts +113 -0
  137. package/src/controllers/menu-item-metadata.controller.ts +21 -15
  138. package/src/controllers/microsoft-authentication.controller.ts +116 -0
  139. package/src/dtos/create-chatter-message.dto.ts +11 -0
  140. package/src/dtos/post-chatter-message.dto.ts +4 -0
  141. package/src/dtos/update-chatter-message.dto.ts +13 -1
  142. package/src/entities/chatter-message.entity.ts +4 -1
  143. package/src/entities/user.entity.ts +32 -0
  144. package/src/helpers/cors.helper.ts +1 -1
  145. package/src/helpers/facebook-oauth.helper.ts +17 -0
  146. package/src/helpers/microsoft-oauth.helper.ts +19 -0
  147. package/src/helpers/user-helper.ts +4 -0
  148. package/src/index.ts +2 -0
  149. package/src/interfaces.ts +32 -1
  150. package/src/passport-strategies/facebook-oauth.strategy.ts +115 -0
  151. package/src/passport-strategies/microsoft-oauth.strategy.ts +70 -0
  152. package/src/seeders/seed-data/solid-core-metadata.json +27 -58
  153. package/src/services/api-key.service.ts +77 -35
  154. package/src/services/authentication.service.ts +1947 -1432
  155. package/src/services/chatter-message.service.ts +23 -3
  156. package/src/services/model-metadata.service.ts +1 -1
  157. package/src/services/setting.service.ts +64 -8
  158. package/src/services/settings/default-settings-provider.service.ts +1168 -156
  159. package/src/services/user.service.ts +220 -61
  160. package/src/solid-core.module.ts +25 -8
  161. package/dev-grooming-docs/ozzy-prompts.txt +0 -70
  162. package/docs/grouping-enhancements.md +0 -89
  163. package/docs/seed-changes.md +0 -65
  164. package/docs/test-data-workflow.md +0 -200
  165. package/docs/type-declaration-import-issue.md +0 -24
@@ -1 +1 @@
1
- {"version":3,"file":"menu-item-metadata.controller.js","sourceRoot":"","sources":["../../src/controllers/menu-item-metadata.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwH;AACxH,+DAA+D;AAC/D,6CAAyF;AACzF,uFAAiF;AACjF,yFAAkF;AAClF,yFAAkF;AAClF,+EAAkE;AAElE,iFAA4E;AAC5E,mG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,EAAC,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC;IACnD,IAAA,YAAG,EAAC,IAAI,CAAC;;IACK,WAAA,IAAA,kCAAU,GAAE,CAAA;;;;+DAG1B;AAIK;IAFL,IAAA,uBAAa,EAAC,KAAK,CAAC;IACpB,IAAA,YAAG,EAAC,KAAK,CAAC;;IACI,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,cAAK,GAAE,CAAA;IAAa,WAAA,IAAA,8DAA4B,GAAE,CAAA;;qDAAqB,kDAAsB;;yDAEpI;AAGK;IADL,IAAA,eAAM,EAAC,OAAO,CAAC;;IACE,WAAA,IAAA,aAAI,GAAE,CAAA;IAAgB,WAAA,IAAA,8DAA4B,GAAE,CAAA;;4CAAqB,kDAAsB;;4DAEhH;AAIK;IAFL,IAAA,uBAAa,EAAC,KAAK,CAAC;IACpB,IAAA,eAAM,EAAC,KAAK,CAAC;;IACA,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAa,WAAA,IAAA,8DAA4B,GAAE,CAAA;;6CAAqB,kDAAsB;;wDAE9G;qCAjEU,0BAA0B;IAFtC,IAAA,iBAAO,EAAC,aAAa,CAAC;IACtB,IAAA,mBAAU,EAAC,oBAAoB,CAAC;qCAEO,oDAAuB;GADlD,0BAA0B,CAmEtC","sourcesContent":["import { Controller, Post, Body, Param, UploadedFiles, UseInterceptors, Put, Get, Query, Delete } from '@nestjs/common';\nimport { AnyFilesInterceptor } from \"@nestjs/platform-express\";\nimport { ApiBearerAuth, ApiForbiddenResponse, ApiQuery, ApiTags } from '@nestjs/swagger';\nimport { MenuItemMetadataService } from '../services/menu-item-metadata.service';\nimport { CreateMenuItemMetadataDto } from '../dtos/create-menu-item-metadata.dto';\nimport { UpdateMenuItemMetadataDto } from '../dtos/update-menu-item-metadata.dto';\nimport { ActiveUser } from 'src/decorators/active-user.decorator';\nimport { ActiveUserData } from 'src/interfaces/active-user-data.interface';\nimport { SolidRequestContextDto } from 'src/dtos/solid-request-context.dto';\nimport { SolidRequestContextDecorator } from 'src/decorators/solid-request-context.decorator';\n\n@ApiTags('App Builder')\n@Controller('menu-item-metadata') //FIXME: Change this to the model plural name \nexport class MenuItemMetadataController {\n constructor(private readonly service: MenuItemMetadataService) { }\n\n @ApiBearerAuth(\"jwt\")\n @Post()\n @UseInterceptors(AnyFilesInterceptor())\n create(@Body() createDto: CreateMenuItemMetadataDto, @UploadedFiles() files: Array<Express.Multer.File>,@SolidRequestContextDecorator() solidRequestContext:SolidRequestContextDto) {\n return this.service.create(createDto, files,solidRequestContext);\n }\n\n @ApiBearerAuth(\"jwt\")\n @Post('/bulk')\n @UseInterceptors(AnyFilesInterceptor())\n insertMany(@Body() createDtos: CreateMenuItemMetadataDto[], @UploadedFiles() filesArray: Express.Multer.File[][] = [],@SolidRequestContextDecorator() solidRequestContext:SolidRequestContextDto) {\n return this.service.insertMany(createDtos, filesArray,solidRequestContext);\n }\n\n\n @ApiBearerAuth(\"jwt\")\n @Put(':id')\n @UseInterceptors(AnyFilesInterceptor())\n update(@Param('id') id: number, @Body() updateDto: UpdateMenuItemMetadataDto, @UploadedFiles() files: Array<Express.Multer.File>,@SolidRequestContextDecorator() solidRequestContext:SolidRequestContextDto) {\n return this.service.update(id, updateDto, files,false,solidRequestContext);\n }\n\n @ApiBearerAuth(\"jwt\")\n @ApiQuery({ name: 'showSoftDeleted', required: false, type: Boolean })\n @ApiQuery({ name: 'showOnlySoftDeleted', required: false, type: Boolean })\n @ApiQuery({ name: 'limit', required: false, type: Number })\n @ApiQuery({ name: 'offset', required: false, type: Number })\n @ApiQuery({ name: 'fields', required: false, type: Array })\n @ApiQuery({ name: 'sort', required: false, type: Array })\n @ApiQuery({ name: 'groupBy', required: false, type: Array })\n @ApiQuery({ name: 'populate', required: false, type: Array })\n @ApiQuery({ name: 'populateMedia', required: false, type: Array })\n @ApiQuery({ name: 'filters', required: false, type: Array })\n @Get()\n async findMany(@Query() query: any,@SolidRequestContextDecorator() solidRequestContext:SolidRequestContextDto) {\n return this.service.find(query,solidRequestContext);\n }\n\n // /api/solid-menu-item/me\n @ApiBearerAuth(\"jwt\")\n @ApiForbiddenResponse({ description: 'Forbidden.' })\n @Get('me')\n findUserMenus(@ActiveUser() activeUser: ActiveUserData) {\n // TODO: Use the menu service method to get a list of menus applicable to this user based on their role.\n return this.service.findUserMenus(activeUser);\n }\n\n @ApiBearerAuth(\"jwt\")\n @Get(':id')\n async findOne(@Param('id') id: string, @Query() query: any,@SolidRequestContextDecorator() solidRequestContext:SolidRequestContextDto) {\n return this.service.findOne(+id, query,solidRequestContext);\n }\n\n @Delete('/bulk')\n async deleteMany(@Body() ids: number[],@SolidRequestContextDecorator() solidRequestContext:SolidRequestContextDto) {\n return this.service.deleteMany(ids,solidRequestContext);\n }\n\n @ApiBearerAuth(\"jwt\")\n @Delete(':id')\n async delete(@Param('id') id: number,@SolidRequestContextDecorator() solidRequestContext:SolidRequestContextDto) {\n return this.service.delete(id,solidRequestContext);\n }\n\n}\n"]}
1
+ {"version":3,"file":"menu-item-metadata.controller.js","sourceRoot":"","sources":["../../src/controllers/menu-item-metadata.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAA+H;AAC/H,+DAA+D;AAC/D,6CAAyF;AACzF,uFAAiF;AACjF,yFAAkF;AAClF,yFAAkF;AAClF,+EAAkE;AAElE,iFAA4E;AAC5E,mGAA8F;AAIvF,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IACrC,YAA6B,OAAgC;QAAhC,YAAO,GAAP,OAAO,CAAyB;IAAI,CAAC;IAKlE,MAAM,CAAS,SAAoC,EAAmB,KAAiC,EAAkC,mBAA2C;QAClL,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,mBAAmB,CAAC,CAAC;IACpE,CAAC;IAKD,UAAU,CAAS,UAAuC,EAAmB,aAAsC,EAAE,EAAkC,mBAA2C;QAChM,OAAO,IAAI,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AAC,KAAK,CAAC;;IACI,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,cAAK,GAAE,CAAA;IAAc,WAAA,IAAA,8DAA4B,GAAE,CAAA;;qDAAsB,kDAAsB;;yDAEtI;AAGK;IADL,IAAA,eAAM,EAAC,OAAO,CAAC;;IACE,WAAA,IAAA,aAAI,GAAE,CAAA;IAAiB,WAAA,IAAA,8DAA4B,GAAE,CAAA;;4CAAsB,kDAAsB;;4DAElH;AAIK;IAFL,IAAA,uBAAa,EAAC,KAAK,CAAC;IACpB,IAAA,eAAM,EAAC,KAAK,CAAC;;IACA,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,8DAA4B,GAAE,CAAA;;6CAAsB,kDAAsB;;wDAEhH;AAKD;IAHC,IAAA,uBAAa,EAAC,KAAK,CAAC;IACpB,IAAA,cAAK,EAAC,KAAK,CAAC;IACZ,IAAA,wBAAe,EAAC,IAAA,sCAAmB,GAAE,CAAC;;IACxB,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;IAAc,WAAA,IAAA,aAAI,GAAE,CAAA;IAAwC,WAAA,IAAA,sBAAa,GAAE,CAAA;;6CAA3C,yDAAyB,EAA0B,KAAK;;+DAEjH;qCAxEU,0BAA0B;IAFtC,IAAA,iBAAO,EAAC,aAAa,CAAC;IACtB,IAAA,mBAAU,EAAC,oBAAoB,CAAC;qCAEO,oDAAuB;GADlD,0BAA0B,CAyEtC","sourcesContent":["import { Controller, Post, Body, Param, UploadedFiles, UseInterceptors, Put, Get, Query, Delete, Patch } from '@nestjs/common';\nimport { AnyFilesInterceptor } from \"@nestjs/platform-express\";\nimport { ApiBearerAuth, ApiForbiddenResponse, ApiQuery, ApiTags } from '@nestjs/swagger';\nimport { MenuItemMetadataService } from '../services/menu-item-metadata.service';\nimport { CreateMenuItemMetadataDto } from '../dtos/create-menu-item-metadata.dto';\nimport { UpdateMenuItemMetadataDto } from '../dtos/update-menu-item-metadata.dto';\nimport { ActiveUser } from 'src/decorators/active-user.decorator';\nimport { ActiveUserData } from 'src/interfaces/active-user-data.interface';\nimport { SolidRequestContextDto } from 'src/dtos/solid-request-context.dto';\nimport { SolidRequestContextDecorator } from 'src/decorators/solid-request-context.decorator';\n\n@ApiTags('App Builder')\n@Controller('menu-item-metadata') //FIXME: Change this to the model plural name \nexport class MenuItemMetadataController {\n constructor(private readonly service: MenuItemMetadataService) { }\n\n @ApiBearerAuth(\"jwt\")\n @Post()\n @UseInterceptors(AnyFilesInterceptor())\n create(@Body() createDto: CreateMenuItemMetadataDto, @UploadedFiles() files: Array<Express.Multer.File>, @SolidRequestContextDecorator() solidRequestContext: SolidRequestContextDto) {\n return this.service.create(createDto, files, solidRequestContext);\n }\n\n @ApiBearerAuth(\"jwt\")\n @Post('/bulk')\n @UseInterceptors(AnyFilesInterceptor())\n insertMany(@Body() createDtos: CreateMenuItemMetadataDto[], @UploadedFiles() filesArray: Express.Multer.File[][] = [], @SolidRequestContextDecorator() solidRequestContext: SolidRequestContextDto) {\n return this.service.insertMany(createDtos, filesArray, solidRequestContext);\n }\n\n\n @ApiBearerAuth(\"jwt\")\n @Put(':id')\n @UseInterceptors(AnyFilesInterceptor())\n update(@Param('id') id: number, @Body() updateDto: UpdateMenuItemMetadataDto, @UploadedFiles() files: Array<Express.Multer.File>, @SolidRequestContextDecorator() solidRequestContext: SolidRequestContextDto) {\n return this.service.update(id, updateDto, files, false, solidRequestContext);\n }\n\n @ApiBearerAuth(\"jwt\")\n @ApiQuery({ name: 'showSoftDeleted', required: false, type: Boolean })\n @ApiQuery({ name: 'showOnlySoftDeleted', required: false, type: Boolean })\n @ApiQuery({ name: 'limit', required: false, type: Number })\n @ApiQuery({ name: 'offset', required: false, type: Number })\n @ApiQuery({ name: 'fields', required: false, type: Array })\n @ApiQuery({ name: 'sort', required: false, type: Array })\n @ApiQuery({ name: 'groupBy', required: false, type: Array })\n @ApiQuery({ name: 'populate', required: false, type: Array })\n @ApiQuery({ name: 'populateMedia', required: false, type: Array })\n @ApiQuery({ name: 'filters', required: false, type: Array })\n @Get()\n async findMany(@Query() query: any, @SolidRequestContextDecorator() solidRequestContext: SolidRequestContextDto) {\n return this.service.find(query, solidRequestContext);\n }\n\n // /api/solid-menu-item/me\n @ApiBearerAuth(\"jwt\")\n @ApiForbiddenResponse({ description: 'Forbidden.' })\n @Get('me')\n findUserMenus(@ActiveUser() activeUser: ActiveUserData) {\n // TODO: Use the menu service method to get a list of menus applicable to this user based on their role.\n return this.service.findUserMenus(activeUser);\n }\n\n @ApiBearerAuth(\"jwt\")\n @Get(':id')\n async findOne(@Param('id') id: string, @Query() query: any, @SolidRequestContextDecorator() solidRequestContext: SolidRequestContextDto) {\n return this.service.findOne(+id, query, solidRequestContext);\n }\n\n @Delete('/bulk')\n async deleteMany(@Body() ids: number[], @SolidRequestContextDecorator() solidRequestContext: SolidRequestContextDto) {\n return this.service.deleteMany(ids, solidRequestContext);\n }\n\n @ApiBearerAuth(\"jwt\")\n @Delete(':id')\n async delete(@Param('id') id: number, @SolidRequestContextDecorator() solidRequestContext: SolidRequestContextDto) {\n return this.service.delete(id, solidRequestContext);\n }\n\n @ApiBearerAuth('jwt')\n @Patch(':id')\n @UseInterceptors(AnyFilesInterceptor())\n partialUpdate(@Param('id') id: number, @Body() updateDto: UpdateMenuItemMetadataDto, @UploadedFiles() files: Array<Express.Multer.File>) {\n return this.service.update(id, updateDto, files, true);\n }\n}\n"]}
@@ -0,0 +1,27 @@
1
+ import { Request, Response } from "express";
2
+ import { AuthenticationService } from "../services/authentication.service";
3
+ import { SettingService } from "../services/setting.service";
4
+ import { UserService } from "../services/user.service";
5
+ export declare class MicrosoftAuthenticationController {
6
+ private readonly userService;
7
+ private readonly authService;
8
+ private readonly settingService;
9
+ constructor(userService: UserService, authService: AuthenticationService, settingService: SettingService);
10
+ private getConfiguration;
11
+ private validateConfiguration;
12
+ connect(): Promise<void>;
13
+ microsoftAuthCallback(req: Request, res: Response): Promise<void>;
14
+ dummyMicrosoftAuthRedirect(accessCode: any): Promise<import("..").User>;
15
+ microsoftAuth(accessCode: string): Promise<{
16
+ accessToken: string;
17
+ refreshToken: string;
18
+ user: {
19
+ email: string;
20
+ mobile: string;
21
+ username: string;
22
+ id: number;
23
+ roles: string[];
24
+ };
25
+ }>;
26
+ }
27
+ //# sourceMappingURL=microsoft-authentication.controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"microsoft-authentication.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/microsoft-authentication.controller.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAK5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAK7D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,qBAGa,iCAAiC;IAE1C,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAFd,WAAW,EAAE,WAAW,EACxB,WAAW,EAAE,qBAAqB,EAClC,cAAc,EAAE,cAAc;YAGnC,gBAAgB;YAqBhB,qBAAqB;IAa7B,OAAO;IAOP,qBAAqB,CAAQ,GAAG,EAAE,OAAO,EAAS,GAAG,EAAE,QAAQ;IAe/D,0BAA0B,CAAsB,UAAU,KAAA;IAoB1D,aAAa,CAAsB,UAAU,EAAE,MAAM;;;;;;;;;;;CAI5D"}
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.MicrosoftAuthenticationController = void 0;
16
+ const openapi = require("@nestjs/swagger");
17
+ const common_1 = require("@nestjs/common");
18
+ const swagger_1 = require("@nestjs/swagger");
19
+ const microsoft_oauth_helper_1 = require("../helpers/microsoft-oauth.helper");
20
+ const authentication_service_1 = require("../services/authentication.service");
21
+ const setting_service_1 = require("../services/setting.service");
22
+ const public_decorator_1 = require("../decorators/public.decorator");
23
+ const auth_decorator_1 = require("../decorators/auth.decorator");
24
+ const auth_type_enum_1 = require("../enums/auth-type.enum");
25
+ const microsoft_oauth_strategy_1 = require("../passport-strategies/microsoft-oauth.strategy");
26
+ const user_service_1 = require("../services/user.service");
27
+ let MicrosoftAuthenticationController = class MicrosoftAuthenticationController {
28
+ constructor(userService, authService, settingService) {
29
+ this.userService = userService;
30
+ this.authService = authService;
31
+ this.settingService = settingService;
32
+ }
33
+ async getConfiguration() {
34
+ return {
35
+ clientID: await this.settingService.getConfigValue("MICROSOFT_CLIENT_ID"),
36
+ clientSecret: await this.settingService.getConfigValue("MICROSOFT_CLIENT_SECRET"),
37
+ tenant: await this.settingService.getConfigValue("MICROSOFT_TENANT_ID"),
38
+ callbackURL: await this.settingService.getConfigValue("MICROSOFT_CALLBACK_URL"),
39
+ redirectURL: await this.settingService.getConfigValue("MICROSOFT_REDIRECT_URL"),
40
+ };
41
+ }
42
+ async validateConfiguration() {
43
+ const config = await this.getConfiguration();
44
+ if (!(0, microsoft_oauth_helper_1.isMicrosoftOAuthConfigured)(config)) {
45
+ throw new common_1.InternalServerErrorException("Microsoft OAuth is not configured");
46
+ }
47
+ return config;
48
+ }
49
+ async connect() {
50
+ await this.validateConfiguration();
51
+ }
52
+ async microsoftAuthCallback(req, res) {
53
+ const config = await this.validateConfiguration();
54
+ const user = req.user;
55
+ return res.redirect(`${config.redirectURL}?accessCode=${user['accessCode']}`);
56
+ }
57
+ async dummyMicrosoftAuthRedirect(accessCode) {
58
+ await this.validateConfiguration();
59
+ const user = await this.userService.findOneByAccessCode(accessCode);
60
+ if (user) {
61
+ delete user['password'];
62
+ }
63
+ return user;
64
+ }
65
+ async microsoftAuth(accessCode) {
66
+ await this.validateConfiguration();
67
+ return this.authService.signInUsingMicrosoft(accessCode);
68
+ }
69
+ };
70
+ exports.MicrosoftAuthenticationController = MicrosoftAuthenticationController;
71
+ __decorate([
72
+ (0, public_decorator_1.Public)(),
73
+ (0, common_1.UseGuards)(microsoft_oauth_strategy_1.MicrosoftOauthGuard),
74
+ (0, common_1.Get)("connect"),
75
+ openapi.ApiResponse({ status: 200 }),
76
+ __metadata("design:type", Function),
77
+ __metadata("design:paramtypes", []),
78
+ __metadata("design:returntype", Promise)
79
+ ], MicrosoftAuthenticationController.prototype, "connect", null);
80
+ __decorate([
81
+ (0, public_decorator_1.Public)(),
82
+ (0, common_1.Get)("connect/callback"),
83
+ (0, common_1.UseGuards)(microsoft_oauth_strategy_1.MicrosoftOauthGuard),
84
+ openapi.ApiResponse({ status: 200 }),
85
+ __param(0, (0, common_1.Req)()),
86
+ __param(1, (0, common_1.Res)()),
87
+ __metadata("design:type", Function),
88
+ __metadata("design:paramtypes", [Object, Object]),
89
+ __metadata("design:returntype", Promise)
90
+ ], MicrosoftAuthenticationController.prototype, "microsoftAuthCallback", null);
91
+ __decorate([
92
+ (0, public_decorator_1.Public)(),
93
+ (0, common_1.Get)('dummy-redirect'),
94
+ openapi.ApiResponse({ status: 200, type: require("../entities/user.entity").User }),
95
+ __param(0, (0, common_1.Query)('accessCode')),
96
+ __metadata("design:type", Function),
97
+ __metadata("design:paramtypes", [Object]),
98
+ __metadata("design:returntype", Promise)
99
+ ], MicrosoftAuthenticationController.prototype, "dummyMicrosoftAuthRedirect", null);
100
+ __decorate([
101
+ (0, public_decorator_1.Public)(),
102
+ (0, common_1.Get)("authenticate"),
103
+ (0, swagger_1.ApiQuery)({ name: "accessCode", required: true, type: String }),
104
+ openapi.ApiResponse({ status: 200 }),
105
+ __param(0, (0, common_1.Query)("accessCode")),
106
+ __metadata("design:type", Function),
107
+ __metadata("design:paramtypes", [String]),
108
+ __metadata("design:returntype", Promise)
109
+ ], MicrosoftAuthenticationController.prototype, "microsoftAuth", null);
110
+ exports.MicrosoftAuthenticationController = MicrosoftAuthenticationController = __decorate([
111
+ (0, auth_decorator_1.Auth)(auth_type_enum_1.AuthType.None),
112
+ (0, swagger_1.ApiTags)("Iam"),
113
+ (0, common_1.Controller)("iam/microsoft"),
114
+ __metadata("design:paramtypes", [user_service_1.UserService,
115
+ authentication_service_1.AuthenticationService,
116
+ setting_service_1.SettingService])
117
+ ], MicrosoftAuthenticationController);
118
+ //# sourceMappingURL=microsoft-authentication.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"microsoft-authentication.controller.js","sourceRoot":"","sources":["../../src/controllers/microsoft-authentication.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,6CAAoD;AAEpD,8EAG2C;AAC3C,+EAA2E;AAC3E,iEAA6D;AAC7D,qEAAyD;AACzD,iEAAoD;AACpD,4DAAmD;AACnD,8FAAsF;AACtF,2DAAuD;AAMhD,IAAM,iCAAiC,GAAvC,MAAM,iCAAiC;IAC5C,YACmB,WAAwB,EACxB,WAAkC,EAClC,cAA8B;QAF9B,gBAAW,GAAX,WAAW,CAAa;QACxB,gBAAW,GAAX,WAAW,CAAuB;QAClC,mBAAc,GAAd,cAAc,CAAgB;IAC9C,CAAC;IAEI,KAAK,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inject,\n InternalServerErrorException,\n Query,\n Req,\n Res,\n UseGuards,\n} from \"@nestjs/common\";\nimport { ApiQuery, ApiTags } from \"@nestjs/swagger\";\nimport { Request, Response } from \"express\";\nimport {\n MicrosoftAuthConfiguration,\n isMicrosoftOAuthConfigured,\n} from \"../helpers/microsoft-oauth.helper\";\nimport { AuthenticationService } from \"../services/authentication.service\";\nimport { SettingService } from \"../services/setting.service\";\nimport { Public } from \"src/decorators/public.decorator\";\nimport { Auth } from \"../decorators/auth.decorator\";\nimport { AuthType } from \"../enums/auth-type.enum\";\nimport { MicrosoftOauthGuard } from \"../passport-strategies/microsoft-oauth.strategy\";\nimport { UserService } from \"../services/user.service\";\nimport type { SolidCoreSetting } from \"../services/settings/default-settings-provider.service\";\n\n@Auth(AuthType.None)\n@ApiTags(\"Iam\")\n@Controller(\"iam/microsoft\")\nexport class MicrosoftAuthenticationController {\n constructor(\n private readonly userService: UserService,\n private readonly authService: AuthenticationService,\n private readonly settingService: SettingService,\n ) {}\n\n private async getConfiguration(): Promise<MicrosoftAuthConfiguration> {\n return {\n clientID:\n await this.settingService.getConfigValue<SolidCoreSetting>(\n \"MICROSOFT_CLIENT_ID\" as any,\n ),\n clientSecret: await this.settingService.getConfigValue<SolidCoreSetting>(\n \"MICROSOFT_CLIENT_SECRET\" as any,\n ),\n tenant: await this.settingService.getConfigValue<SolidCoreSetting>(\n \"MICROSOFT_TENANT_ID\" as any,\n ),\n callbackURL: await this.settingService.getConfigValue<SolidCoreSetting>(\n \"MICROSOFT_CALLBACK_URL\" as any,\n ),\n redirectURL: await this.settingService.getConfigValue<SolidCoreSetting>(\n \"MICROSOFT_REDIRECT_URL\" as any,\n ),\n };\n }\n\n private async validateConfiguration() {\n const config = await this.getConfiguration();\n if (!isMicrosoftOAuthConfigured(config)) {\n throw new InternalServerErrorException(\n \"Microsoft OAuth is not configured\",\n );\n }\n return config;\n }\n\n @Public()\n @UseGuards(MicrosoftOauthGuard)\n @Get(\"connect\")\n async connect() {\n await this.validateConfiguration();\n }\n\n @Public()\n @Get(\"connect/callback\")\n @UseGuards(MicrosoftOauthGuard)\n async microsoftAuthCallback(@Req() req: Request, @Res() res: Response) {\n const config = await this.validateConfiguration();\n const user = req.user;\n return res.redirect(`${config.redirectURL}?accessCode=${user['accessCode']}`);\n }\n\n /**\n * This is just a dummy endpoint where we are passing in the accessCode, this will be configured in the .env as an environment variable and \n * will be passed the accessCode, using the accessCode the UI code on this page will mostly invoke the /iam/microsoft/auth endpoint which will finally generate the JWT token.\n * \n * @param accessCode \n * @returns \n */\n @Public()\n @Get('dummy-redirect')\n async dummyMicrosoftAuthRedirect(@Query('accessCode') accessCode) {\n await this.validateConfiguration();\n const user = await this.userService.findOneByAccessCode(accessCode);\n\n if (user) {\n delete user['password'];\n }\n\n return user;\n }\n\n /**\n * Use this endpoint to authenticate using an accessCode with Microsoft.\n * \n * @param accessCode \n * @returns \n */\n @Public()\n @Get(\"authenticate\")\n @ApiQuery({ name: \"accessCode\", required: true, type: String })\n async microsoftAuth(@Query(\"accessCode\") accessCode: string) {\n await this.validateConfiguration();\n return this.authService.signInUsingMicrosoft(accessCode);\n }\n}\n"]}
@@ -4,8 +4,8 @@ export declare class SettingController {
4
4
  private readonly service;
5
5
  constructor(service: SettingService);
6
6
  updateSettings(body: any, files: Array<Express.Multer.File>): Promise<import("..").Setting[]>;
7
- wrapSettings(): Promise<Record<any, any>>;
8
- getAllSettings(): Promise<Record<any, any>>;
7
+ wrapSettings(): Promise<import("..").AdminSettingsResponse<any>>;
8
+ getAllSettings(): Promise<import("..").AdminSettingsResponse<any>>;
9
9
  getMcpUrl(query: any, solidRequestContext: SolidRequestContextDto): Promise<any>;
10
10
  }
11
11
  //# sourceMappingURL=setting.controller.d.ts.map
@@ -60,7 +60,7 @@ __decorate([
60
60
  __decorate([
61
61
  (0, common_1.Get)('/wrapped'),
62
62
  (0, public_decorator_1.Public)(),
63
- openapi.ApiResponse({ status: 200, type: Object }),
63
+ openapi.ApiResponse({ status: 200 }),
64
64
  __metadata("design:type", Function),
65
65
  __metadata("design:paramtypes", []),
66
66
  __metadata("design:returntype", Promise)
@@ -68,7 +68,7 @@ __decorate([
68
68
  __decorate([
69
69
  (0, swagger_1.ApiBearerAuth)("jwt"),
70
70
  (0, common_1.Get)(),
71
- openapi.ApiResponse({ status: 200, type: Object }),
71
+ openapi.ApiResponse({ status: 200 }),
72
72
  __metadata("design:type", Function),
73
73
  __metadata("design:paramtypes", []),
74
74
  __metadata("design:returntype", Promise)
@@ -1 +1 @@
1
- {"version":3,"file":"auth.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/auth.decorator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD,eAAO,MAAM,aAAa,aAAa,CAAC;AAExC,eAAO,MAAM,IAAI,iBAAkB,QAAQ,EAAE,qDAA0C,CAAC"}
1
+ {"version":3,"file":"auth.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/auth.decorator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD,eAAO,MAAM,aAAa,aAAa,CAAC;AAExC,eAAO,MAAM,IAAI,GAAI,GAAG,WAAW,QAAQ,EAAE,qDAA0C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"computed-field-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/computed-field-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,+BAA+B,CAAC;AAEvE,eAAO,MAAM,qBAAqB,iBACd,QAAQ,SAG3B,CAAC"}
1
+ {"version":3,"file":"computed-field-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/computed-field-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,+BAA+B,CAAC;AAEvE,eAAO,MAAM,qBAAqB,SACtB,QAAQ,QAAQ,SAG3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"dashboard-question-data-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/dashboard-question-data-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,wCAAwC,CAAC;AAEzF,eAAO,MAAM,6BAA6B,iBACtB,QAAQ,SAG3B,CAAC"}
1
+ {"version":3,"file":"dashboard-question-data-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/dashboard-question-data-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,wCAAwC,CAAC;AAEzF,eAAO,MAAM,6BAA6B,SAC9B,QAAQ,QAAQ,SAG3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"dashboard-selection-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/dashboard-selection-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wCAAwC,6CAA6C,CAAC;AAEnG,eAAO,MAAM,kCAAkC,iBAC3B,QAAQ,SAG3B,CAAC"}
1
+ {"version":3,"file":"dashboard-selection-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/dashboard-selection-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wCAAwC,6CAA6C,CAAC;AAEnG,eAAO,MAAM,kCAAkC,SACnC,QAAQ,QAAQ,SAG3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"disallow-in-production.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/disallow-in-production.decorator.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,UAAU,SAAS;IACnB,WAAW,QAAQ;CACpB;AAED,wBAAgB,oBAAoB,CAAC,MAAM,CAAC,EAAE,MAAM,YAExC,GAAG,eACE,MAAM,cACP,kBAAkB,wBAkBjC"}
1
+ {"version":3,"file":"disallow-in-production.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/disallow-in-production.decorator.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,UAAU,SAAS;IACnB,WAAW,QAAQ;CACpB;AAED,wBAAgB,oBAAoB,CAAC,MAAM,CAAC,EAAE,MAAM,IAEhD,QAAQ,GAAG,EACX,aAAa,MAAM,EACnB,YAAY,kBAAkB,wBAkBjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"error-codes-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/error-codes-provider.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAE/D,eAAO,MAAM,iBAAiB,iBACV,QAAQ,SAG3B,CAAC"}
1
+ {"version":3,"file":"error-codes-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/error-codes-provider.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAE/D,eAAO,MAAM,iBAAiB,SAClB,QAAQ,QAAQ,SAG3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"extension-user-creation-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/extension-user-creation-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,wCAAwC,CAAC;AAEzF,eAAO,MAAM,6BAA6B,iBAC/B,QAAQ,SAC0D,CAAC"}
1
+ {"version":3,"file":"extension-user-creation-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/extension-user-creation-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,wCAAwC,CAAC;AAEzF,eAAO,MAAM,6BAA6B,SACvC,QAAQ,QAAQ,SAC0D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-not-in-enum.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/is-not-in-enum.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAA0C,MAAM,iBAAiB,CAAC;AAG5F,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,iBAAiB,YACtD,MAAM,gBAAgB,MAAM,UAmBtD"}
1
+ {"version":3,"file":"is-not-in-enum.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/is-not-in-enum.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAA0C,MAAM,iBAAiB,CAAC;AAG5F,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,iBAAiB,IAC9D,QAAQ,MAAM,EAAE,cAAc,MAAM,UAmBtD"}
@@ -1 +1 @@
1
- {"version":3,"file":"mail-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/mail-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD,eAAO,MAAM,YAAY,iBACL,QAAQ,SAG3B,CAAC"}
1
+ {"version":3,"file":"mail-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/mail-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AAEnD,eAAO,MAAM,YAAY,SACb,QAAQ,QAAQ,SAG3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"roles.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/roles.decorator.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,UAAU,CAAC;AACjC,eAAO,MAAM,KAAK,aAAc,MAAM,EAAE,qDAAkC,CAAC"}
1
+ {"version":3,"file":"roles.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/roles.decorator.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,UAAU,CAAC;AACjC,eAAO,MAAM,KAAK,GAAI,GAAG,OAAO,MAAM,EAAE,qDAAkC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"scheduled-job-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/scheduled-job-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AAErE,eAAO,MAAM,oBAAoB,iBACb,QAAQ,SAG3B,CAAC"}
1
+ {"version":3,"file":"scheduled-job-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/scheduled-job-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AAErE,eAAO,MAAM,oBAAoB,SACrB,QAAQ,QAAQ,SAG3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"security-rule-config-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/security-rule-config-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC,qCAAqC,CAAC;AAEnF,eAAO,MAAM,0BAA0B,iBACnB,QAAQ,SAG3B,CAAC"}
1
+ {"version":3,"file":"security-rule-config-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/security-rule-config-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC,qCAAqC,CAAC;AAEnF,eAAO,MAAM,0BAA0B,SAC3B,QAAQ,QAAQ,SAG3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"selection-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/selection-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D,eAAO,MAAM,iBAAiB,iBACV,QAAQ,SAG3B,CAAC"}
1
+ {"version":3,"file":"selection-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/selection-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D,eAAO,MAAM,iBAAiB,SAClB,QAAQ,QAAQ,SAG3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"sms-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/sms-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,oBAAoB,CAAC;AAEjD,eAAO,MAAM,WAAW,iBACJ,QAAQ,SAG3B,CAAC"}
1
+ {"version":3,"file":"sms-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/sms-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,oBAAoB,CAAC;AAEjD,eAAO,MAAM,WAAW,SACZ,QAAQ,QAAQ,SAG3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"solid-database-module.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/solid-database-module.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AAEnE,eAAO,MAAM,mBAAmB,iBACZ,QAAQ,SAG3B,CAAC"}
1
+ {"version":3,"file":"solid-database-module.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/solid-database-module.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AAEnE,eAAO,MAAM,mBAAmB,SACpB,QAAQ,QAAQ,SAG3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"whatsapp-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/whatsapp-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,eAAO,MAAM,gBAAgB,iBACT,QAAQ,SAG3B,CAAC"}
1
+ {"version":3,"file":"whatsapp-provider.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/whatsapp-provider.decorator.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,eAAO,MAAM,gBAAgB,SACjB,QAAQ,QAAQ,SAG3B,CAAC"}
@@ -6,5 +6,6 @@ export declare class CreateChatterMessageDto {
6
6
  coModelName: string;
7
7
  userId: number;
8
8
  userUserKey: string;
9
+ status: string;
9
10
  }
10
11
  //# sourceMappingURL=create-chatter-message.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-chatter-message.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-chatter-message.dto.ts"],"names":[],"mappings":"AAIA,qBAAa,uBAAuB;IAIhC,WAAW,EAAE,MAAM,CAAC;IAIpB,cAAc,EAAE,MAAM,CAAC;IAIvB,WAAW,EAAE,MAAM,CAAC;IAIpB,eAAe,EAAE,MAAM,CAAC;IAIxB,WAAW,EAAE,MAAM,CAAC;IAIpB,MAAM,EAAE,MAAM,CAAC;IAIf,WAAW,EAAE,MAAM,CAAC;CACvB"}
1
+ {"version":3,"file":"create-chatter-message.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/create-chatter-message.dto.ts"],"names":[],"mappings":"AAIA,qBAAa,uBAAuB;IAIhC,WAAW,EAAE,MAAM,CAAC;IAKpB,cAAc,EAAE,MAAM,CAAC;IAKvB,WAAW,EAAE,MAAM,CAAC;IAKpB,eAAe,EAAE,MAAM,CAAC;IAKxB,WAAW,EAAE,MAAM,CAAC;IAKpB,MAAM,EAAE,MAAM,CAAC;IAKf,WAAW,EAAE,MAAM,CAAC;IAKpB,MAAM,EAAE,MAAM,CAAC;CAClB"}
@@ -16,7 +16,7 @@ const class_validator_1 = require("class-validator");
16
16
  const class_validator_2 = require("class-validator");
17
17
  class CreateChatterMessageDto {
18
18
  static _OPENAPI_METADATA_FACTORY() {
19
- return { messageType: { required: true, type: () => String }, messageSubType: { required: true, type: () => String }, messageBody: { required: true, type: () => String }, coModelEntityId: { required: true, type: () => Number }, coModelName: { required: true, type: () => String }, userId: { required: true, type: () => Number }, userUserKey: { required: true, type: () => String } };
19
+ return { messageType: { required: true, type: () => String }, messageSubType: { required: true, type: () => String }, messageBody: { required: true, type: () => String }, coModelEntityId: { required: true, type: () => Number }, coModelName: { required: true, type: () => String }, userId: { required: true, type: () => Number }, userUserKey: { required: true, type: () => String }, status: { required: true, type: () => String } };
20
20
  }
21
21
  }
22
22
  exports.CreateChatterMessageDto = CreateChatterMessageDto;
@@ -62,4 +62,10 @@ __decorate([
62
62
  (0, swagger_1.ApiProperty)(),
63
63
  __metadata("design:type", String)
64
64
  ], CreateChatterMessageDto.prototype, "userUserKey", void 0);
65
+ __decorate([
66
+ (0, class_validator_1.IsString)(),
67
+ (0, class_validator_2.IsOptional)(),
68
+ (0, swagger_1.ApiProperty)(),
69
+ __metadata("design:type", String)
70
+ ], CreateChatterMessageDto.prototype, "status", void 0);
65
71
  //# sourceMappingURL=create-chatter-message.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-chatter-message.dto.js","sourceRoot":"","sources":["../../src/dtos/create-chatter-message.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAA2C;AAC3C,qDAAgE;AAEhE,MAAa,uBAAuB;;;;CA6BnC;AA7BD,0DA6BC;AAzBG;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;4DACM;AAIpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;+DACS;AAIvB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;4DACM;AAIpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;gEACU;AAIxB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;4DACM;AAIpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;uDACC;AAIf;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;4DACM","sourcesContent":["import { ApiProperty } from '@nestjs/swagger';\nimport { IsString } from 'class-validator';\nimport { IsNotEmpty, IsInt, IsOptional } from 'class-validator';\n\nexport class CreateChatterMessageDto {\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n messageType: string;\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n messageSubType: string;\n @IsOptional()\n @IsString()\n @ApiProperty()\n messageBody: string;\n @IsNotEmpty()\n @IsInt()\n @ApiProperty()\n coModelEntityId: number;\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n coModelName: string;\n @IsOptional()\n @IsInt()\n @ApiProperty()\n userId: number;\n @IsString()\n @IsOptional()\n @ApiProperty()\n userUserKey: string;\n}"]}
1
+ {"version":3,"file":"create-chatter-message.dto.js","sourceRoot":"","sources":["../../src/dtos/create-chatter-message.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAA2C;AAC3C,qDAAgE;AAEhE,MAAa,uBAAuB;;;;CAwCnC;AAxCD,0DAwCC;AApCG;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;4DACM;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;+DACS;AAKvB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;4DACM;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;gEACU;AAKxB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;4DACM;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;uDACC;AAKf;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;4DACM;AAKpB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;uDACC","sourcesContent":["import { ApiProperty } from '@nestjs/swagger';\nimport { IsString } from 'class-validator';\nimport { IsNotEmpty, IsInt, IsOptional } from 'class-validator';\n\nexport class CreateChatterMessageDto {\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n messageType: string;\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n messageSubType: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n messageBody: string;\n\n @IsNotEmpty()\n @IsInt()\n @ApiProperty()\n coModelEntityId: number;\n\n @IsNotEmpty()\n @IsString()\n @ApiProperty()\n coModelName: string;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n userId: number;\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n userUserKey: string;\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n status: string;\n}"]}
@@ -4,5 +4,6 @@ export declare class PostChatterMessageDto {
4
4
  messageBody: string;
5
5
  messageSubType?: string;
6
6
  modelUserKey?: string;
7
+ status?: string;
7
8
  }
8
9
  //# sourceMappingURL=post-chatter-message.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"post-chatter-message.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/post-chatter-message.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,qBAAqB;IAG9B,eAAe,EAAE,MAAM,CAAC;IAIxB,WAAW,EAAE,MAAM,CAAC;IAIpB,WAAW,EAAE,MAAM,CAAC;IAIpB,cAAc,CAAC,EAAE,MAAM,CAAC;IAIxB,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB"}
1
+ {"version":3,"file":"post-chatter-message.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/post-chatter-message.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,qBAAqB;IAG9B,eAAe,EAAE,MAAM,CAAC;IAIxB,WAAW,EAAE,MAAM,CAAC;IAIpB,WAAW,EAAE,MAAM,CAAC;IAIpB,cAAc,CAAC,EAAE,MAAM,CAAC;IAIxB,YAAY,CAAC,EAAE,MAAM,CAAC;IAItB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -14,7 +14,7 @@ const openapi = require("@nestjs/swagger");
14
14
  const class_validator_1 = require("class-validator");
15
15
  class PostChatterMessageDto {
16
16
  static _OPENAPI_METADATA_FACTORY() {
17
- return { coModelEntityId: { required: true, type: () => Number }, coModelName: { required: true, type: () => String }, messageBody: { required: true, type: () => String }, messageSubType: { required: false, type: () => String }, modelUserKey: { required: false, type: () => String } };
17
+ return { coModelEntityId: { required: true, type: () => Number }, coModelName: { required: true, type: () => String }, messageBody: { required: true, type: () => String }, messageSubType: { required: false, type: () => String }, modelUserKey: { required: false, type: () => String }, status: { required: false, type: () => String } };
18
18
  }
19
19
  }
20
20
  exports.PostChatterMessageDto = PostChatterMessageDto;
@@ -43,4 +43,9 @@ __decorate([
43
43
  (0, class_validator_1.IsOptional)(),
44
44
  __metadata("design:type", String)
45
45
  ], PostChatterMessageDto.prototype, "modelUserKey", void 0);
46
+ __decorate([
47
+ (0, class_validator_1.IsString)(),
48
+ (0, class_validator_1.IsOptional)(),
49
+ __metadata("design:type", String)
50
+ ], PostChatterMessageDto.prototype, "status", void 0);
46
51
  //# sourceMappingURL=post-chatter-message.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"post-chatter-message.dto.js","sourceRoot":"","sources":["../../src/dtos/post-chatter-message.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAA6E;AAE7E,MAAa,qBAAqB;;;;CAoBjC;AApBD,sDAoBC;AAjBG;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACW;AAIxB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACO;AAIpB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACO;AAIpB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACW;AAIxB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACS","sourcesContent":["import { IsNotEmpty, IsNumber, IsString, IsOptional } from 'class-validator';\n\nexport class PostChatterMessageDto {\n @IsNumber()\n @IsNotEmpty()\n coModelEntityId: number;\n\n @IsString()\n @IsNotEmpty()\n coModelName: string;\n\n @IsString()\n @IsNotEmpty()\n messageBody: string;\n\n @IsString()\n @IsOptional()\n messageSubType?: string;\n\n @IsString()\n @IsOptional()\n modelUserKey?: string;\n}"]}
1
+ {"version":3,"file":"post-chatter-message.dto.js","sourceRoot":"","sources":["../../src/dtos/post-chatter-message.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAA6E;AAE7E,MAAa,qBAAqB;;;;CAwBjC;AAxBD,sDAwBC;AArBG;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8DACW;AAIxB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACO;AAIpB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACO;AAIpB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACW;AAIxB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACS;AAItB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACG","sourcesContent":["import { IsNotEmpty, IsNumber, IsString, IsOptional } from 'class-validator';\n\nexport class PostChatterMessageDto {\n @IsNumber()\n @IsNotEmpty()\n coModelEntityId: number;\n\n @IsString()\n @IsNotEmpty()\n coModelName: string;\n\n @IsString()\n @IsNotEmpty()\n messageBody: string;\n\n @IsString()\n @IsOptional()\n messageSubType?: string;\n\n @IsString()\n @IsOptional()\n modelUserKey?: string;\n\n @IsString()\n @IsOptional()\n status?: string;\n}"]}
@@ -7,5 +7,6 @@ export declare class UpdateChatterMessageDto {
7
7
  coModelName: string;
8
8
  userId: number;
9
9
  userUserKey: string;
10
+ status: string;
10
11
  }
11
12
  //# sourceMappingURL=update-chatter-message.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-chatter-message.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-chatter-message.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,uBAAuB;IAGhC,EAAE,EAAE,MAAM,CAAC;IAKX,WAAW,EAAE,MAAM,CAAC;IAKpB,cAAc,EAAE,MAAM,CAAC;IAKvB,WAAW,EAAE,MAAM,CAAC;IAKpB,eAAe,EAAE,MAAM,CAAC;IAKxB,WAAW,EAAE,MAAM,CAAC;IAIpB,MAAM,EAAE,MAAM,CAAC;IAIf,WAAW,EAAE,MAAM,CAAC;CACvB"}
1
+ {"version":3,"file":"update-chatter-message.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/update-chatter-message.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,uBAAuB;IAGhC,EAAE,EAAE,MAAM,CAAC;IAMX,WAAW,EAAE,MAAM,CAAC;IAMpB,cAAc,EAAE,MAAM,CAAC;IAMvB,WAAW,EAAE,MAAM,CAAC;IAMpB,eAAe,EAAE,MAAM,CAAC;IAMxB,WAAW,EAAE,MAAM,CAAC;IAKpB,MAAM,EAAE,MAAM,CAAC;IAKf,WAAW,EAAE,MAAM,CAAC;IAKpB,MAAM,EAAE,MAAM,CAAC;CAClB"}
@@ -15,7 +15,7 @@ const class_validator_1 = require("class-validator");
15
15
  const swagger_1 = require("@nestjs/swagger");
16
16
  class UpdateChatterMessageDto {
17
17
  static _OPENAPI_METADATA_FACTORY() {
18
- return { id: { required: true, type: () => Number }, messageType: { required: true, type: () => String }, messageSubType: { required: true, type: () => String }, messageBody: { required: true, type: () => String }, coModelEntityId: { required: true, type: () => Number }, coModelName: { required: true, type: () => String }, userId: { required: true, type: () => Number }, userUserKey: { required: true, type: () => String } };
18
+ return { id: { required: true, type: () => Number }, messageType: { required: true, type: () => String }, messageSubType: { required: true, type: () => String }, messageBody: { required: true, type: () => String }, coModelEntityId: { required: true, type: () => Number }, coModelName: { required: true, type: () => String }, userId: { required: true, type: () => Number }, userUserKey: { required: true, type: () => String }, status: { required: true, type: () => String } };
19
19
  }
20
20
  }
21
21
  exports.UpdateChatterMessageDto = UpdateChatterMessageDto;
@@ -71,4 +71,10 @@ __decorate([
71
71
  (0, swagger_1.ApiProperty)(),
72
72
  __metadata("design:type", String)
73
73
  ], UpdateChatterMessageDto.prototype, "userUserKey", void 0);
74
+ __decorate([
75
+ (0, class_validator_1.IsOptional)(),
76
+ (0, class_validator_1.IsString)(),
77
+ (0, swagger_1.ApiProperty)(),
78
+ __metadata("design:type", String)
79
+ ], UpdateChatterMessageDto.prototype, "status", void 0);
74
80
  //# sourceMappingURL=update-chatter-message.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-chatter-message.dto.js","sourceRoot":"","sources":["../../src/dtos/update-chatter-message.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAAyE;AACzE,6CAA8C;AAE9C,MAAa,uBAAuB;;;;CAqCnC;AArCD,0DAqCC;AAlCG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;mDACG;AAKX;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;4DACM;AAKpB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;+DACS;AAKvB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;4DACM;AAKpB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;gEACU;AAKxB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;4DACM;AAIpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;uDACC;AAIf;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;4DACM","sourcesContent":["import { IsInt,IsOptional, IsString, IsNotEmpty } from 'class-validator';\nimport { ApiProperty } from '@nestjs/swagger';\n\nexport class UpdateChatterMessageDto {\n @IsOptional()\n @IsInt()\n id: number;\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n messageType: string;\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n messageSubType: string;\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n messageBody: string;\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n coModelEntityId: number;\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n coModelName: string;\n @IsOptional()\n @IsInt()\n @ApiProperty()\n userId: number;\n @IsString()\n @IsOptional()\n @ApiProperty()\n userUserKey: string;\n}"]}
1
+ {"version":3,"file":"update-chatter-message.dto.js","sourceRoot":"","sources":["../../src/dtos/update-chatter-message.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qDAA0E;AAC1E,6CAA8C;AAE9C,MAAa,uBAAuB;;;;CAiDnC;AAjDD,0DAiDC;AA9CG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;mDACG;AAMX;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;4DACM;AAMpB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;+DACS;AAMvB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;4DACM;AAMpB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;gEACU;AAMxB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;4DACM;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAW,GAAE;;uDACC;AAKf;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAW,GAAE;;4DACM;AAKpB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;uDACC","sourcesContent":["import { IsInt, IsOptional, IsString, IsNotEmpty } from 'class-validator';\nimport { ApiProperty } from '@nestjs/swagger';\n\nexport class UpdateChatterMessageDto {\n @IsOptional()\n @IsInt()\n id: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n messageType: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n messageSubType: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n messageBody: string;\n\n @IsNotEmpty()\n @IsOptional()\n @IsInt()\n @ApiProperty()\n coModelEntityId: number;\n\n @IsNotEmpty()\n @IsOptional()\n @IsString()\n @ApiProperty()\n coModelName: string;\n\n @IsOptional()\n @IsInt()\n @ApiProperty()\n userId: number;\n\n @IsString()\n @IsOptional()\n @ApiProperty()\n userUserKey: string;\n\n @IsOptional()\n @IsString()\n @ApiProperty()\n status: string;\n}"]}
@@ -11,5 +11,6 @@ export declare class ChatterMessage extends CommonEntity {
11
11
  chatterMessageDetails: ChatterMessageDetails[];
12
12
  modelDisplayName: string;
13
13
  modelUserKey: string;
14
+ status: string;
14
15
  }
15
16
  //# sourceMappingURL=chatter-message.entity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chatter-message.entity.d.ts","sourceRoot":"","sources":["../../src/entities/chatter-message.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAGzE,qBAEa,cAAe,SAAQ,YAAY;IAG5C,WAAW,EAAE,MAAM,CAAC;IAGpB,cAAc,EAAE,MAAM,CAAC;IAGvB,WAAW,EAAE,MAAM,CAAC;IAIpB,eAAe,EAAE,MAAM,CAAC;IAIxB,WAAW,EAAE,MAAM,CAAC;IAKpB,IAAI,EAAE,IAAI,CAAC;IAGX,qBAAqB,EAAE,qBAAqB,EAAE,CAAC;IAG/C,gBAAgB,EAAE,MAAM,CAAC;IAGzB,YAAY,EAAE,MAAM,CAAC;CACxB"}
1
+ {"version":3,"file":"chatter-message.entity.d.ts","sourceRoot":"","sources":["../../src/entities/chatter-message.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAA;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAGzE,qBAEa,cAAe,SAAQ,YAAY;IAG5C,WAAW,EAAE,MAAM,CAAC;IAGpB,cAAc,EAAE,MAAM,CAAC;IAGvB,WAAW,EAAE,MAAM,CAAC;IAIpB,eAAe,EAAE,MAAM,CAAC;IAIxB,WAAW,EAAE,MAAM,CAAC;IAKpB,IAAI,EAAE,IAAI,CAAC;IAGX,qBAAqB,EAAE,qBAAqB,EAAE,CAAC;IAG/C,gBAAgB,EAAE,MAAM,CAAC;IAGzB,YAAY,EAAE,MAAM,CAAC;IAGrB,MAAM,EAAE,MAAM,CAAC;CAClB"}
@@ -18,7 +18,7 @@ const chatter_message_details_entity_1 = require("./chatter-message-details.enti
18
18
  const typeorm_db_helper_1 = require("../helpers/typeorm-db-helper");
19
19
  let ChatterMessage = class ChatterMessage extends common_entity_1.CommonEntity {
20
20
  static _OPENAPI_METADATA_FACTORY() {
21
- return { messageType: { required: true, type: () => String }, messageSubType: { required: true, type: () => String }, messageBody: { required: true, type: () => String }, coModelEntityId: { required: true, type: () => Number }, coModelName: { required: true, type: () => String }, user: { required: true, type: () => require("./user.entity").User }, chatterMessageDetails: { required: true, type: () => [require("./chatter-message-details.entity").ChatterMessageDetails] }, modelDisplayName: { required: true, type: () => String }, modelUserKey: { required: true, type: () => String } };
21
+ return { messageType: { required: true, type: () => String }, messageSubType: { required: true, type: () => String }, messageBody: { required: true, type: () => String }, coModelEntityId: { required: true, type: () => Number }, coModelName: { required: true, type: () => String }, user: { required: true, type: () => require("./user.entity").User }, chatterMessageDetails: { required: true, type: () => [require("./chatter-message-details.entity").ChatterMessageDetails] }, modelDisplayName: { required: true, type: () => String }, modelUserKey: { required: true, type: () => String }, status: { required: true, type: () => String } };
22
22
  }
23
23
  };
24
24
  exports.ChatterMessage = ChatterMessage;
@@ -63,6 +63,10 @@ __decorate([
63
63
  (0, typeorm_1.Column)({ nullable: true }),
64
64
  __metadata("design:type", String)
65
65
  ], ChatterMessage.prototype, "modelUserKey", void 0);
66
+ __decorate([
67
+ (0, typeorm_1.Column)({ default: 'pending' }),
68
+ __metadata("design:type", String)
69
+ ], ChatterMessage.prototype, "status", void 0);
66
70
  exports.ChatterMessage = ChatterMessage = __decorate([
67
71
  (0, typeorm_1.Index)(["coModelName", "coModelEntityId"]),
68
72
  (0, typeorm_1.Entity)("ss_chatter_message")
@@ -1 +1 @@
1
- {"version":3,"file":"chatter-message.entity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IAAA,eAAK,EAAC,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAC;IACzC,IAAA,gBAAM,EAAC,oBAAoB,CAAC;GAChB,cAAc,CAgC1B","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity'\nimport { Entity, Column, Index, JoinColumn, ManyToOne, OneToMany } from 'typeorm';\nimport { User } from 'src/entities/user.entity'\nimport { ChatterMessageDetails } from './chatter-message-details.entity';\nimport { getColumnType } from 'src/helpers/typeorm-db-helper';\n\n@Index([\"coModelName\", \"coModelEntityId\"])\n@Entity(\"ss_chatter_message\")\nexport class ChatterMessage extends CommonEntity {\n @Index()\n @Column({ type: \"varchar\" })\n messageType: string; // audit | custom \n\n @Column({ type: \"varchar\" })\n messageSubType: string; // audit_update | audit_insert | audit_delete | custom\n\n @Column({ nullable: true, ...getColumnType('longText') })\n messageBody: string;\n\n @Index()\n @Column({ type: \"integer\" })\n coModelEntityId: number;\n\n @Index()\n @Column({ type: \"varchar\" })\n coModelName: string;\n\n @Index()\n @ManyToOne(() => User, { nullable: true })\n @JoinColumn()\n user: User;\n\n @OneToMany(() => ChatterMessageDetails, (chatterMessageDetails) => chatterMessageDetails.chatterMessage, { cascade: true })\n chatterMessageDetails: ChatterMessageDetails[];\n\n @Column({ nullable: true })\n modelDisplayName: string;\n\n @Column({ nullable: true })\n modelUserKey: string;\n}\n"]}
1
+ {"version":3,"file":"chatter-message.entity.js","sourceRoot":"","sources":["../../src/entities/chatter-message.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mDAAyD;AACzD,qCAAkF;AAClF,+CAA+C;AAC/C,qFAAyE;AACzE,oEAA8D;AAIvD,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAY;;;;CAmC/C,CAAA;AAnCY,wCAAc;AAGvB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;mDACR;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;sDACL;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,IAAA,iCAAa,EAAC,UAAU,CAAC,EAAE,CAAC;;mDACrC;AAIpB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;uDACJ;AAIxB;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;mDACR;AAKpB;IAHC,IAAA,eAAK,GAAE;IACP,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACzC,IAAA,oBAAU,GAAE;8BACP,kBAAI;4CAAC;AAGX;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sDAAqB,EAAE,CAAC,qBAAqB,EAAE,EAAE,CAAC,qBAAqB,CAAC,cAAc,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;6DAC5E;AAG/C;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACF;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACN;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;;8CAChB;yBAlCN,cAAc;IAF1B,IAAA,eAAK,EAAC,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAC;IACzC,IAAA,gBAAM,EAAC,oBAAoB,CAAC;GAChB,cAAc,CAmC1B","sourcesContent":["import { CommonEntity } from 'src/entities/common.entity'\nimport { Entity, Column, Index, JoinColumn, ManyToOne, OneToMany } from 'typeorm';\nimport { User } from 'src/entities/user.entity'\nimport { ChatterMessageDetails } from './chatter-message-details.entity';\nimport { getColumnType } from 'src/helpers/typeorm-db-helper';\n\n@Index([\"coModelName\", \"coModelEntityId\"])\n@Entity(\"ss_chatter_message\")\nexport class ChatterMessage extends CommonEntity {\n @Index()\n @Column({ type: \"varchar\" })\n messageType: string; // audit | custom \n\n @Column({ type: \"varchar\" })\n messageSubType: string; // audit_update | audit_insert | audit_delete | custom | note | task\n\n @Column({ nullable: true, ...getColumnType('longText') })\n messageBody: string;\n\n @Index()\n @Column({ type: \"integer\" })\n coModelEntityId: number;\n\n @Index()\n @Column({ type: \"varchar\" })\n coModelName: string;\n\n @Index()\n @ManyToOne(() => User, { nullable: true })\n @JoinColumn()\n user: User;\n\n @OneToMany(() => ChatterMessageDetails, (chatterMessageDetails) => chatterMessageDetails.chatterMessage, { cascade: true })\n chatterMessageDetails: ChatterMessageDetails[];\n\n @Column({ nullable: true })\n modelDisplayName: string;\n\n @Column({ nullable: true })\n modelUserKey: string;\n\n @Column({ default: 'pending' })\n status: string; // pending | completed\n}\n"]}
@@ -14,6 +14,14 @@ export declare class User extends CommonEntity {
14
14
  googleAccessToken: string;
15
15
  googleId: string;
16
16
  googleProfilePicture: string;
17
+ facebookId: string;
18
+ facebookAccessToken: string;
19
+ facebookProfilePicture: string;
20
+ appleId: string;
21
+ appleAccessToken: string;
22
+ microsoftId: string;
23
+ microsoftAccessToken: string;
24
+ microsoftProfilePicture: string;
17
25
  active: boolean;
18
26
  forgotPasswordConfirmedAt: Date;
19
27
  verificationTokenOnForgotPassword: string;
@@ -1 +1 @@
1
- {"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAA;AAG7D,qBAGa,IAAK,SAAQ,YAAY;IAG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