@silexpert/core 1.3.45 → 1.3.46

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 (28) hide show
  1. package/dist/cjs/api/resources/User.d.ts +2 -2
  2. package/dist/cjs/api/resources/User.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/User.js +2 -2
  4. package/dist/cjs/api/resources/User.js.map +1 -1
  5. package/dist/cjs/types/Interface/api/stripe/Create.d.ts +1 -1
  6. package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  7. package/dist/cjs/types/Interface/api/stripe/Create.js +2 -1
  8. package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
  9. package/dist/cjs/types/Interface/api/user/Query.d.ts +3 -0
  10. package/dist/cjs/types/Interface/api/user/Query.d.ts.map +1 -1
  11. package/dist/cjs/types/Interface/api/user/Query.js +36 -3
  12. package/dist/cjs/types/Interface/api/user/Query.js.map +1 -1
  13. package/dist/mjs/api/resources/User.d.ts +2 -2
  14. package/dist/mjs/api/resources/User.d.ts.map +1 -1
  15. package/dist/mjs/api/resources/User.js +2 -2
  16. package/dist/mjs/api/resources/User.js.map +1 -1
  17. package/dist/mjs/types/Interface/api/stripe/Create.d.ts +1 -1
  18. package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  19. package/dist/mjs/types/Interface/api/stripe/Create.js +2 -1
  20. package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
  21. package/dist/mjs/types/Interface/api/user/Query.d.ts +3 -0
  22. package/dist/mjs/types/Interface/api/user/Query.d.ts.map +1 -1
  23. package/dist/mjs/types/Interface/api/user/Query.js +35 -2
  24. package/dist/mjs/types/Interface/api/user/Query.js.map +1 -1
  25. package/package.json +1 -1
  26. package/ts/api/resources/User.ts +3 -2
  27. package/ts/types/Interface/api/stripe/Create.ts +3 -2
  28. package/ts/types/Interface/api/user/Query.ts +36 -2
@@ -1,5 +1,5 @@
1
1
  import { Resource } from '../Resource';
2
- import { IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation, QueryGetAllFromSociety, ISociety, Role, QueryGetAllCollaborators, QueryGetAllCollaboratorsByRoles, QueryGetAllWithoutBp, CollaboratorsByRoles, QueryUserExport, UpdateCorworker, GetSocietyFromUser, RegisterProspectBody, RegisterProspectResponse } from '../../types';
2
+ import { IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation, QueryGetAllFromSociety, ISociety, Role, QueryGetAllCollaborators, QueryGetAllCollaboratorsByRoles, QueryGetAllWithoutBp, CollaboratorsByRoles, QueryUserExport, UpdateCorworker, GetSocietyFromUser, RegisterProspectBody, RegisterProspectResponse, QueryGet } from '../../types';
3
3
  export declare class User extends Resource {
4
4
  confirm(params: QueryConfirm): Promise<IUser>;
5
5
  resendConfirmationEmailLink(params: QueryResendConfirmationLink): Promise<boolean>;
@@ -18,7 +18,7 @@ export declare class User extends Resource {
18
18
  update(id: number, params: Partial<IUser> & {
19
19
  lastMobileConnection?: Date;
20
20
  }): Promise<IUser>;
21
- getInfo(): Promise<IUser>;
21
+ getInfo(params: QueryGet): Promise<IUser>;
22
22
  delete(id: number): Promise<number>;
23
23
  getByRoles(params: {
24
24
  roles: Role[];
@@ -1 +1 @@
1
- {"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,KAAK,EACL,YAAY,EACZ,2BAA2B,EAC3B,UAAU,EACV,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,QAAQ,EACR,IAAI,EAEJ,wBAAwB,EACxB,+BAA+B,EAC/B,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACzB,MAAM,aAAa,CAAC;AAErB,qBAAa,I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87
87
  return this.axios.$put(`user/${id}`, params);
88
88
  }
89
- getInfo() {
90
- return this.axios.$get('user');
89
+ getInfo(params) {
90
+ return this.axios.$get('user', { params });
91
91
  }
92
92
  delete(id) {
93
93
  return this.axios.$delete(`users/${id}`);
@@ -1 +1 @@
1
- {"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../ts/api/resources/User.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AACvC,uCAoBqB;AAErB,MAAa,IAAK,SAAQ,mBAAQ;IAChC,OAAO,CAAC,MAAoB;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;IACD,2BAA2B,CAAC,MAAmC;QAC7D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,MAAM,CAAC,EAAE,8BAA8B,CAAC,CAAC;IAC1E,CAAC;IACD,MAAM,CAAC,IAAgB;QACrB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;IAC/C,CAAC;IACD,QAAQ,CAAC,IAAoB;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;IACjD,CAAC;IACD,cAAc,CAAC,MAAc,EAAE,MAAuB;QACpD,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;QAChC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YAC9C,IAAI,KAAK,IAAI,KAAK,KAAK,KAAK,IAAI,KAAK,KAAK,CAAC,EAAE,CAAC;gBAC5C,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;oBACzB,KAAK,CAAC,OAAO,CAAC,CAAC,CAAkB,EAAE,EAAE;wBACnC,QAAQ,CAAC,MAAM,CAAC,GAAG,GAAG,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,EAAE,MAAM,CAAC,CAAC;IAC/C,CAAC;IACD,OAAO;QACL,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACjC,CAAC;IACD,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IAC3C,CAAC;IAED,UAAU,CAAC,MAAyB;QAClC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACpD,CAAC;IACD,MAAM,CAAC,MAAuB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE;YACrC,MAAM;YACN,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,gBAAgB,CAAC,IAA0B;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC;CACF;AA1GD,oBA0GC","sourcesContent":["import { Resource } from '../Resource';\nimport {\n IUser,\n QueryConfirm,\n QueryResendConfirmationLink,\n CreateUser,\n CreateCoworker,\n QueryUserSmsConfirmation,\n QueryGetAllFromSociety,\n ISociety,\n Role,\n TimeCounterType,\n QueryGetAllCollaborators,\n QueryGetAllCollaboratorsByRoles,\n QueryGetAllWithoutBp,\n CollaboratorsByRoles,\n QueryUserExport,\n UpdateCorworker,\n GetSocietyFromUser,\n RegisterProspectBody,\n RegisterProspectResponse,\n} from '../../types';\n\nexport class User extends Resource {\n confirm(params: QueryConfirm): Promise<IUser> {\n return this.axios.$put('user/confirm', params);\n }\n resendConfirmationEmailLink(params: QueryResendConfirmationLink): Promise<boolean> {\n return this.axios.$put(`user/${params.id}/resendConfirmationEmailLink`);\n }\n create(data: CreateUser): Promise<IUser> {\n return this.axios.$post('user/create', data);\n }\n coworker(data: CreateCoworker): Promise<IUser> {\n return this.axios.$post('user/coworker', data);\n }\n updateCoworker(idUser: number, params: UpdateCorworker): Promise<IUser> {\n const formData = new FormData();\n Object.entries(params).forEach(([key, value]) => {\n if (value || value === false || value === 0) {\n if (Array.isArray(value)) {\n value.forEach((v: number | string) => {\n formData.append(`${key}[]`, `${v}`);\n });\n } else if (key === 'file') formData.append('file', value);\n else formData.append(key, `${value}`);\n }\n });\n\n return this.axios.$put(`/user/coworker/${idUser}`, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n });\n }\n\n sendNewCode(id: number): Promise<IUser> {\n return this.axios.$put(`user/${id}/sendNewSmsCode`);\n }\n verifySmsCodeConfirmation(id: number, params: QueryUserSmsConfirmation): Promise<IUser> {\n return this.axios.$get(`user/${id}/verifySmsCodeConfirmation`, { params });\n }\n allFromSociety(params: QueryGetAllFromSociety): Promise<IUser[]> {\n return this.axios.$get('user/all-from-society', { params });\n }\n allWithoutBp(params: QueryGetAllWithoutBp): Promise<IUser[]> {\n return this.axios.$get('user/all-without-bp', { params });\n }\n allCollaborators(params: QueryGetAllCollaborators): Promise<IUser[]> {\n return this.axios.$get('user/all-collaborators', { params });\n }\n allCollaboratorsByRoles(data: QueryGetAllCollaboratorsByRoles): Promise<CollaboratorsByRoles[]> {\n const { idTimeCounterType, idRoles } = data;\n let params = { idRoles };\n if (idTimeCounterType) {\n const timeCounterType = Object.values(TimeCounterType).find((tct) => tct.id === idTimeCounterType);\n const rolesByDefault = [\n Role.FRONT_OFFICE,\n Role.FRONT_OFFICE_EXPRESS,\n Role.SOCIAL,\n Role.JURIDIC,\n Role.HUMAN_RESSOURCES,\n Role.FACTURATION,\n Role.CUSTOMER_SUCCESS,\n Role.COMMERCIAL,\n Role.MANAGER,\n Role.EXPERT_ACCOUNTANT,\n Role.DEVELOPER,\n Role.TECHNICAL_ADVISOR,\n ];\n params = { idRoles: timeCounterType?.limitedRoles ?? rolesByDefault };\n }\n return this.axios.$get('user/all-collaborators-by-roles', { params });\n }\n selectableTeammates(): Promise<IUser[]> {\n return this.axios.$get('user/selectable-teammates');\n }\n calendarSelectableTeammates(): Promise<IUser[]> {\n return this.axios.$get('user/calendar-selectable-teammates');\n }\n\n getAllSocieties(id: number, params: GetSocietyFromUser): Promise<ISociety[]> {\n return this.axios.$get(`/users/${id}/societies`, { params });\n }\n\n update(id: number, params: Partial<IUser> & { lastMobileConnection?: Date }): Promise<IUser> {\n return this.axios.$put(`user/${id}`, params);\n }\n getInfo(): Promise<IUser> {\n return this.axios.$get('user');\n }\n delete(id: number): Promise<number> {\n return this.axios.$delete(`users/${id}`);\n }\n\n getByRoles(params: { roles: Role[] }): Promise<IUser[]> {\n return this.axios.$get('users/roles', { params });\n }\n export(params: QueryUserExport): Promise<Buffer> {\n return this.axios.$get('users/export', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n registerProspect(body: RegisterProspectBody): Promise<RegisterProspectResponse> {\n return this.axios.$post('users/prospect', body);\n }\n}\n"]}
1
+ {"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../ts/api/resources/User.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AACvC,uCAqBqB;AAErB,MAAa,IAAK,SAAQ,mBAAQ;IAChC,OAAO,CAAC,MAAoB;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;IACD,2BAA2B,CAAC,MAAmC;QAC7D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,MAAM,CAAC,EAAE,8BAA8B,CAAC,CAAC;IAC1E,CAAC;IACD,MAAM,CAAC,IAAgB;QACrB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;IAC/C,CAAC;IACD,QAAQ,CAAC,IAAoB;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,eAA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import { Resource } from '../Resource';\nimport {\n IUser,\n QueryConfirm,\n QueryResendConfirmationLink,\n CreateUser,\n CreateCoworker,\n QueryUserSmsConfirmation,\n QueryGetAllFromSociety,\n ISociety,\n Role,\n TimeCounterType,\n QueryGetAllCollaborators,\n QueryGetAllCollaboratorsByRoles,\n QueryGetAllWithoutBp,\n CollaboratorsByRoles,\n QueryUserExport,\n UpdateCorworker,\n GetSocietyFromUser,\n RegisterProspectBody,\n RegisterProspectResponse,\n QueryGet,\n} from '../../types';\n\nexport class User extends Resource {\n confirm(params: QueryConfirm): Promise<IUser> {\n return this.axios.$put('user/confirm', params);\n }\n resendConfirmationEmailLink(params: QueryResendConfirmationLink): Promise<boolean> {\n return this.axios.$put(`user/${params.id}/resendConfirmationEmailLink`);\n }\n create(data: CreateUser): Promise<IUser> {\n return this.axios.$post('user/create', data);\n }\n coworker(data: CreateCoworker): Promise<IUser> {\n return this.axios.$post('user/coworker', data);\n }\n updateCoworker(idUser: number, params: UpdateCorworker): Promise<IUser> {\n const formData = new FormData();\n Object.entries(params).forEach(([key, value]) => {\n if (value || value === false || value === 0) {\n if (Array.isArray(value)) {\n value.forEach((v: number | string) => {\n formData.append(`${key}[]`, `${v}`);\n });\n } else if (key === 'file') formData.append('file', value);\n else formData.append(key, `${value}`);\n }\n });\n\n return this.axios.$put(`/user/coworker/${idUser}`, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n });\n }\n\n sendNewCode(id: number): Promise<IUser> {\n return this.axios.$put(`user/${id}/sendNewSmsCode`);\n }\n verifySmsCodeConfirmation(id: number, params: QueryUserSmsConfirmation): Promise<IUser> {\n return this.axios.$get(`user/${id}/verifySmsCodeConfirmation`, { params });\n }\n allFromSociety(params: QueryGetAllFromSociety): Promise<IUser[]> {\n return this.axios.$get('user/all-from-society', { params });\n }\n allWithoutBp(params: QueryGetAllWithoutBp): Promise<IUser[]> {\n return this.axios.$get('user/all-without-bp', { params });\n }\n allCollaborators(params: QueryGetAllCollaborators): Promise<IUser[]> {\n return this.axios.$get('user/all-collaborators', { params });\n }\n allCollaboratorsByRoles(data: QueryGetAllCollaboratorsByRoles): Promise<CollaboratorsByRoles[]> {\n const { idTimeCounterType, idRoles } = data;\n let params = { idRoles };\n if (idTimeCounterType) {\n const timeCounterType = Object.values(TimeCounterType).find((tct) => tct.id === idTimeCounterType);\n const rolesByDefault = [\n Role.FRONT_OFFICE,\n Role.FRONT_OFFICE_EXPRESS,\n Role.SOCIAL,\n Role.JURIDIC,\n Role.HUMAN_RESSOURCES,\n Role.FACTURATION,\n Role.CUSTOMER_SUCCESS,\n Role.COMMERCIAL,\n Role.MANAGER,\n Role.EXPERT_ACCOUNTANT,\n Role.DEVELOPER,\n Role.TECHNICAL_ADVISOR,\n ];\n params = { idRoles: timeCounterType?.limitedRoles ?? rolesByDefault };\n }\n return this.axios.$get('user/all-collaborators-by-roles', { params });\n }\n selectableTeammates(): Promise<IUser[]> {\n return this.axios.$get('user/selectable-teammates');\n }\n calendarSelectableTeammates(): Promise<IUser[]> {\n return this.axios.$get('user/calendar-selectable-teammates');\n }\n\n getAllSocieties(id: number, params: GetSocietyFromUser): Promise<ISociety[]> {\n return this.axios.$get(`/users/${id}/societies`, { params });\n }\n\n update(id: number, params: Partial<IUser> & { lastMobileConnection?: Date }): Promise<IUser> {\n return this.axios.$put(`user/${id}`, params);\n }\n getInfo(params: QueryGet): Promise<IUser> {\n return this.axios.$get('user', { params });\n }\n delete(id: number): Promise<number> {\n return this.axios.$delete(`users/${id}`);\n }\n\n getByRoles(params: { roles: Role[] }): Promise<IUser[]> {\n return this.axios.$get('users/roles', { params });\n }\n export(params: QueryUserExport): Promise<Buffer> {\n return this.axios.$get('users/export', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n registerProspect(body: RegisterProspectBody): Promise<RegisterProspectResponse> {\n return this.axios.$post('users/prospect', body);\n }\n}\n"]}
@@ -19,7 +19,7 @@ export declare class CreateSubscriptionSession {
19
19
  priceId: string;
20
20
  }
21
21
  export declare class CreateSubscriptionSessionOff {
22
- stripeCustomerId: string;
22
+ stripeCustomerId?: string;
23
23
  ref: string;
24
24
  returnUrl?: string;
25
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,qBAAa,sBAAsB;IAGjC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,mBAAmB;IAG9B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,cAAc;IAGzB,EAAE,EAAE,MAAM,CAAC;IAIX,KAAK,EAAE,MAAM,CAAC;IAId,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,iCAAiC;IAI5C,SAAS,CAAC,EAAE,IAAI,CAAC;IAKjB,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB;AAED,qBAAa,yBAAyB;IAGpC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,4BAA4B;IAGvC,gBAAgB,EAAE,MAAM,CAAC;IAIzB,GAAG,EAAE,MAAM,CAAC;IAKZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,mBAAmB;IAG9B,gBAAgB,EAAE,MAAM,CAAC;IAIzB,eAAe,EAAE,MAAM,CAAC;IAIxB,aAAa,EAAE,MAAM,CAAC;IAGtB,QAAQ,CAAC,EAAE,MAAM,CAAC,aAAa,CAAC;CACjC"}
1
+ {"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,qBAAa,sBAAsB;IAGjC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,mBAAmB;IAG9B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,cAAc;IAGzB,EAAE,EAAE,MAAM,CAAC;IAIX,KAAK,EAAE,MAAM,CAAC;IAId,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,iCAAiC;IAI5C,SAAS,CAAC,EAAE,IAAI,CAAC;IAKjB,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB;AAED,qBAAa,yBAAyB;IAGpC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,4BAA4B;IAIvC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAI1B,GAAG,EAAE,MAAM,CAAC;IAKZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,mBAAmB;IAG9B,gBAAgB,EAAE,MAAM,CAAC;IAIzB,eAAe,EAAE,MAAM,CAAC;IAIxB,aAAa,EAAE,MAAM,CAAC;IAGtB,QAAQ,CAAC,EAAE,MAAM,CAAC,aAAa,CAAC;CACjC"}
@@ -78,7 +78,8 @@ class CreateSubscriptionSessionOff {
78
78
  }
79
79
  exports.CreateSubscriptionSessionOff = CreateSubscriptionSessionOff;
80
80
  __decorate([
81
- (0, utils_1.ApiProperty)(),
81
+ (0, utils_1.ApiPropertyOptional)(),
82
+ (0, class_validator_1.IsOptional)(),
82
83
  (0, class_validator_1.IsString)(),
83
84
  __metadata("design:type", String)
84
85
  ], CreateSubscriptionSessionOff.prototype, "stripeCustomerId", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsE;AACtE,6CAAqE;AAErE,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AADC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;oDACE;AAGf,MAAa,mBAAmB;CAI/B;AAJD,kDAIC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,2BAAmB,GAAE;;qDACU","sourcesContent":["import { IsDate, IsInt, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport type Stripe from 'stripe';\nexport class CreateStripeConnection {\n @ApiProperty()\n @IsString()\n code: string;\n}\n\nexport class CreateStripePortals {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n}\n\nexport class CreateCustomer {\n @ApiProperty()\n @IsInt()\n id: number;\n\n @ApiProperty()\n @IsString()\n email: string;\n\n @ApiPropertyOptional()\n @IsString()\n lastname?: string;\n\n @ApiPropertyOptional()\n @IsString()\n firstname?: string;\n}\n\nexport class CreateImportTransactionForSociety {\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n startDate?: Date;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n endDate?: Date;\n}\n\nexport class CreateSubscriptionSession {\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateSubscriptionSessionOff {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiProperty()\n @IsString()\n ref: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreatePaymentIntent {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiProperty()\n @IsString()\n paymentMethodId: string;\n\n @ApiProperty()\n @IsInt()\n amountInCents: number;\n\n @ApiPropertyOptional()\n metadata?: Stripe.MetadataParam;\n}\n"]}
1
+ {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsE;AACtE,6CAAqE;AAErE,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AADC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;oDACE;AAGf,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AADC;IAFC,IAAA,mBAAW,GAAE;IACb,IAAA,0BAAQ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","sourcesContent":["import { IsDate, IsInt, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport type Stripe from 'stripe';\nexport class CreateStripeConnection {\n @ApiProperty()\n @IsString()\n code: string;\n}\n\nexport class CreateStripePortals {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n}\n\nexport class CreateCustomer {\n @ApiProperty()\n @IsInt()\n id: number;\n\n @ApiProperty()\n @IsString()\n email: string;\n\n @ApiPropertyOptional()\n @IsString()\n lastname?: string;\n\n @ApiPropertyOptional()\n @IsString()\n firstname?: string;\n}\n\nexport class CreateImportTransactionForSociety {\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n startDate?: Date;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n endDate?: Date;\n}\n\nexport class CreateSubscriptionSession {\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateSubscriptionSessionOff {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n stripeCustomerId?: string;\n\n @ApiProperty()\n @IsString()\n ref: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreatePaymentIntent {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiProperty()\n @IsString()\n paymentMethodId: string;\n\n @ApiProperty()\n @IsInt()\n amountInCents: number;\n\n @ApiPropertyOptional()\n metadata?: Stripe.MetadataParam;\n}\n"]}
@@ -48,4 +48,7 @@ export declare class QueryUserExport {
48
48
  idTypeSubscription?: number;
49
49
  reason?: number[];
50
50
  }
51
+ export declare class QueryGet {
52
+ withNewToken?: boolean;
53
+ }
51
54
  //# sourceMappingURL=Query.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/Query.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAA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CAAC,EAAE,MAAM,EAAE,CAAC;IAInB,KAAK,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;CAChC;AAED,qBAAa,mBAAmB;IAG9B,QAAQ,EAAE,MAAM,CAAC;IAMjB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAKnB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,qBAAa,wBAAwB;IAEnC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,eAAe;IAI1B,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,OAAO,CAAC,EAAE,MAAM,CAAC;IAMjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAKlB,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAK5B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,qBAAa,QAAQ;IAKnB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB"}
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.QueryUserExport = exports.QueryUserSmsConfirmation = exports.QueryUpdatePassword = exports.GetSocietyFromUser = exports.QueryResendConfirmationLink = exports.QueryGetAllWithoutBp = exports.QueryGetAllFromSociety = exports.QueryGetAllCollaboratorsByRoles = exports.QueryGetAllCollaborators = exports.QueryConfirm = void 0;
12
+ exports.QueryGet = exports.QueryUserExport = exports.QueryUserSmsConfirmation = exports.QueryUpdatePassword = exports.GetSocietyFromUser = exports.QueryResendConfirmationLink = exports.QueryGetAllWithoutBp = exports.QueryGetAllFromSociety = exports.QueryGetAllCollaboratorsByRoles = exports.QueryGetAllCollaborators = exports.QueryConfirm = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const utils_1 = require("../../../../utils");
15
15
  const boolean_transform_1 = require("../../../../utils/transforms/boolean.transform");
@@ -143,13 +143,36 @@ __decorate([
143
143
  ], GetSocietyFromUser.prototype, "attributes", void 0);
144
144
  __decorate([
145
145
  (0, utils_1.ApiPropertyOptional)({
146
- default: ['societyConfig', 'brandType', 'societyGescom', 'oldExpertInfo', 'activity', 'follows', 'compta', 'subscriptionType', 'connector', 'permissions']
146
+ default: [
147
+ 'societyConfig',
148
+ 'brandType',
149
+ 'societyGescom',
150
+ 'oldExpertInfo',
151
+ 'activity',
152
+ 'follows',
153
+ 'compta',
154
+ 'subscriptionType',
155
+ 'connector',
156
+ 'permissions',
157
+ ],
147
158
  }),
148
159
  (0, class_validator_1.IsOptional)(),
149
160
  (0, class_validator_1.IsString)({
150
161
  each: true,
151
162
  }),
152
- (0, class_validator_1.IsIn)(['societyConfig', 'brandType', 'societyGescom', 'oldExpertInfo', 'activity', 'follows', 'compta', 'subscriptionType', 'connector', 'permissions', 'societyDetails'], { each: true }),
163
+ (0, class_validator_1.IsIn)([
164
+ 'societyConfig',
165
+ 'brandType',
166
+ 'societyGescom',
167
+ 'oldExpertInfo',
168
+ 'activity',
169
+ 'follows',
170
+ 'compta',
171
+ 'subscriptionType',
172
+ 'connector',
173
+ 'permissions',
174
+ 'societyDetails',
175
+ ], { each: true }),
153
176
  __metadata("design:type", Array)
154
177
  ], GetSocietyFromUser.prototype, "include", void 0);
155
178
  __decorate([
@@ -225,4 +248,14 @@ __decorate([
225
248
  (0, class_validator_1.IsArray)(),
226
249
  __metadata("design:type", Array)
227
250
  ], QueryUserExport.prototype, "reason", void 0);
251
+ class QueryGet {
252
+ }
253
+ exports.QueryGet = QueryGet;
254
+ __decorate([
255
+ (0, utils_1.ApiPropertyOptional)(),
256
+ (0, class_validator_1.IsOptional)(),
257
+ (0, class_validator_1.IsBoolean)(),
258
+ (0, boolean_transform_1.ToBoolean)(),
259
+ __metadata("design:type", Boolean)
260
+ ], QueryGet.prototype, "withNewToken", void 0);
228
261
  //# sourceMappingURL=Query.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/Query.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuG;AACvG,6CAAqE;AACrE,sFAA2E;AAC3E,qEAAkE;AAIlE,MAAa,YAAY;CAMxB;AAND,oCAMC;AAJC;IADC,IAAA,mBAAW,GAAE;;sDACW;AAGzB;IADC,IAAA,mBAAW,GAAE;;2CACA;AAGhB,MAAa,wBAAwB;CAgBpC;AAhBD,4DAgBC;AATC;IANC,IAAA,mBAAW,EAAC;QACX,WAAW,EAAE,oBAAoB;QACjC,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;KACjB,CAAC;;wDACgB;AAQlB;IANC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC;QACR,IAAI,EAAE,IAAI;KACX,CAAC;IACD,IAAA,sBAAI,EAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,eAAe,EAAE,qBAAqB,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;yDAC/D;AAGrB,MAAa,+BAA+B;CAa3C;AAbD,0EAaC;AATC;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;0EACmB;AAQ3B;IANC,IAAA,mBAAW,EAAC;QACX,WAAW,EAAE,4BAA4B;QACzC,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;KACjB,CAAC;;gEACgB;AAGpB,MAAa,sBAAsB;CAuBlC;AAvBD,wDAuBC;AAhBC;IANC,IAAA,mBAAW,EAAC;QACX,WAAW,EAAE,6BAA6B;QAC1C,QAAQ,EAAE,IAAI;QACd,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AKlB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACG;AAKd;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACiB;AAK5B;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;+CACQ","sourcesContent":["import { IsArray, IsBoolean, IsIn, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { SubscriptionType } from '../../../Enum/SubscriptionType';\nimport { WhereOptions } from 'sequelize';\nimport { ISociety } from '../../models/ISociety';\n\nexport class QueryConfirm {\n @ApiProperty()\n tokenConfirmedAt: string;\n\n @ApiProperty()\n email: string;\n}\n\nexport class QueryGetAllCollaborators {\n @ApiProperty({\n description: 'filtering users id',\n required: false,\n type: [Number],\n example: [1, 13],\n })\n idUser?: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString({\n each: true,\n })\n @IsIn(['avatar', 'teams', 'businessLines', 'collaboraterDetails'], { each: true })\n include?: string[];\n}\n\nexport class QueryGetAllCollaboratorsByRoles {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idTimeCounterType?: number;\n\n @ApiProperty({\n description: 'roles used for group users',\n required: true,\n type: [Number],\n example: [1, 13],\n })\n idRoles: number[];\n}\n\nexport class QueryGetAllFromSociety {\n @ApiProperty({\n description: 'id of the specified society',\n required: true,\n type: Number,\n example: 100,\n })\n idSociety: number;\n\n @ApiProperty({\n description: 'array of roles id needed to return list of users',\n required: true,\n type: [Number],\n example: [1, 13],\n })\n @IsArray()\n roles: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n usersNotInBusinessPartner?: boolean;\n}\n\nexport class QueryGetAllWithoutBp {\n @ApiProperty({\n description: 'id of the specified society',\n required: true,\n type: Number,\n example: 100,\n })\n idSociety: number;\n}\n\nexport class QueryResendConfirmationLink {\n @ApiProperty()\n id: number;\n}\n\nexport class GetSocietyFromUser {\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idSubscriptionType?: SubscriptionType;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n displayArchived?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n onlyLabAccepted?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString({ each: true })\n attributes?: Extract<keyof ISociety, string>[];\n\n @ApiPropertyOptional({\n default: ['societyConfig', 'brandType', 'societyGescom', 'oldExpertInfo', 'activity', 'follows', 'compta', 'subscriptionType', 'connector', 'permissions']\n })\n @IsOptional()\n @IsString({\n each: true,\n })\n @IsIn(['societyConfig', 'brandType', 'societyGescom', 'oldExpertInfo', 'activity', 'follows', 'compta', 'subscriptionType', 'connector', 'permissions', 'societyDetails'], { each: true })\n include?: string[];\n\n @ApiPropertyOptional()\n @IsOptional()\n where?: WhereOptions<ISociety>;\n}\n\nexport class QueryUpdatePassword {\n @ApiProperty()\n @IsString()\n password: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @Min(1)\n id?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n token?: string | null;\n}\n\nexport class QueryUserSmsConfirmation {\n @ApiProperty()\n code: string;\n}\n\nexport class QueryUserExport {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n dateStart?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n dateEnd?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n archive?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n week?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idTypeSubscription?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n reason?: number[];\n}\n"]}
1
+ {"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/Query.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuG;AACvG,6CAAqE;AACrE,sFAA2E;AAC3E,qEAAkE;AAIlE,MAAa,YAAY;CAMxB;AAND,oCAMC;AAJC;IADC,IAAA,mBAAW,GAAE;;sDACW;AAGzB;IADC,IAAA,mBAAW,GAAE;;2CACA;AAGhB,MAAa,wBAAwB;CAgBpC;AAhBD,4DAgBC;AATC;IANC,IAAA,mBAAW,EAAC;QACX,WAAW,EAAE,oBAAoB;QACjC,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;KACjB,CAAC;;wDACgB;AAQlB;IANC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC;QACR,IAAI,EAAE,IAAI;KACX,CAAC;IACD,IAAA,sBAAI,EAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,eAAe,EAAE,qBAAqB,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;yDAC/D;AAGrB,MAAa,+BAA+B;CAa3C;AAbD,0EAaC;AATC;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;0EACmB;AAQ3B;IANC,IAAA,mBAAW,EAAC;QACX,WAAW,EAAE,4BAA4B;QACzC,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;KACjB,CAAC;;gEACgB;AAGpB,MAAa,sBAAsB;CAuBlC;AAvBD,wDAuBC;AAhBC;IANC,IAAA,mBAAW,EAAC;QACX,WAAW,EAAE,6B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AE;;gDACM;AAKlB;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACG;AAKd;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACiB;AAK5B;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;+CACQ;AAGpB,MAAa,QAAQ;CAMpB;AAND,4BAMC;AADC;IAJC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;;8CACW","sourcesContent":["import { IsArray, IsBoolean, IsIn, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { SubscriptionType } from '../../../Enum/SubscriptionType';\nimport { WhereOptions } from 'sequelize';\nimport { ISociety } from '../../models/ISociety';\n\nexport class QueryConfirm {\n @ApiProperty()\n tokenConfirmedAt: string;\n\n @ApiProperty()\n email: string;\n}\n\nexport class QueryGetAllCollaborators {\n @ApiProperty({\n description: 'filtering users id',\n required: false,\n type: [Number],\n example: [1, 13],\n })\n idUser?: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString({\n each: true,\n })\n @IsIn(['avatar', 'teams', 'businessLines', 'collaboraterDetails'], { each: true })\n include?: string[];\n}\n\nexport class QueryGetAllCollaboratorsByRoles {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idTimeCounterType?: number;\n\n @ApiProperty({\n description: 'roles used for group users',\n required: true,\n type: [Number],\n example: [1, 13],\n })\n idRoles: number[];\n}\n\nexport class QueryGetAllFromSociety {\n @ApiProperty({\n description: 'id of the specified society',\n required: true,\n type: Number,\n example: 100,\n })\n idSociety: number;\n\n @ApiProperty({\n description: 'array of roles id needed to return list of users',\n required: true,\n type: [Number],\n example: [1, 13],\n })\n @IsArray()\n roles: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n usersNotInBusinessPartner?: boolean;\n}\n\nexport class QueryGetAllWithoutBp {\n @ApiProperty({\n description: 'id of the specified society',\n required: true,\n type: Number,\n example: 100,\n })\n idSociety: number;\n}\n\nexport class QueryResendConfirmationLink {\n @ApiProperty()\n id: number;\n}\n\nexport class GetSocietyFromUser {\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idSubscriptionType?: SubscriptionType;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n displayArchived?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n onlyLabAccepted?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString({ each: true })\n attributes?: Extract<keyof ISociety, string>[];\n\n @ApiPropertyOptional({\n default: [\n 'societyConfig',\n 'brandType',\n 'societyGescom',\n 'oldExpertInfo',\n 'activity',\n 'follows',\n 'compta',\n 'subscriptionType',\n 'connector',\n 'permissions',\n ],\n })\n @IsOptional()\n @IsString({\n each: true,\n })\n @IsIn(\n [\n 'societyConfig',\n 'brandType',\n 'societyGescom',\n 'oldExpertInfo',\n 'activity',\n 'follows',\n 'compta',\n 'subscriptionType',\n 'connector',\n 'permissions',\n 'societyDetails',\n ],\n { each: true },\n )\n include?: string[];\n\n @ApiPropertyOptional()\n @IsOptional()\n where?: WhereOptions<ISociety>;\n}\n\nexport class QueryUpdatePassword {\n @ApiProperty()\n @IsString()\n password: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @Min(1)\n id?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n token?: string | null;\n}\n\nexport class QueryUserSmsConfirmation {\n @ApiProperty()\n code: string;\n}\n\nexport class QueryUserExport {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n dateStart?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n dateEnd?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n archive?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n week?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idTypeSubscription?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n reason?: number[];\n}\n\nexport class QueryGet {\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n withNewToken?: boolean;\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { Resource } from '../Resource';
2
- import { IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation, QueryGetAllFromSociety, ISociety, Role, QueryGetAllCollaborators, QueryGetAllCollaboratorsByRoles, QueryGetAllWithoutBp, CollaboratorsByRoles, QueryUserExport, UpdateCorworker, GetSocietyFromUser, RegisterProspectBody, RegisterProspectResponse } from '../../types';
2
+ import { IUser, QueryConfirm, QueryResendConfirmationLink, CreateUser, CreateCoworker, QueryUserSmsConfirmation, QueryGetAllFromSociety, ISociety, Role, QueryGetAllCollaborators, QueryGetAllCollaboratorsByRoles, QueryGetAllWithoutBp, CollaboratorsByRoles, QueryUserExport, UpdateCorworker, GetSocietyFromUser, RegisterProspectBody, RegisterProspectResponse, QueryGet } from '../../types';
3
3
  export declare class User extends Resource {
4
4
  confirm(params: QueryConfirm): Promise<IUser>;
5
5
  resendConfirmationEmailLink(params: QueryResendConfirmationLink): Promise<boolean>;
@@ -18,7 +18,7 @@ export declare class User extends Resource {
18
18
  update(id: number, params: Partial<IUser> & {
19
19
  lastMobileConnection?: Date;
20
20
  }): Promise<IUser>;
21
- getInfo(): Promise<IUser>;
21
+ getInfo(params: QueryGet): Promise<IUser>;
22
22
  delete(id: number): Promise<number>;
23
23
  getByRoles(params: {
24
24
  roles: Role[];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AM,EAAE,QAAQ,GAAG,OAAO,CAAC,KAAK,CAAC;IAGzC,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAInC,UAAU,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,IAAI,EAAE,CAAA;KAAE,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;IAGvD,MAAM,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;IAUhD,gBAAgB,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,wBAAwB,CAAC;CAGhF"}
@@ -82,8 +82,8 @@ export class User extends Resource {
82
82
  update(id, params) {
83
83
  return this.axios.$put(`user/${id}`, params);
84
84
  }
85
- getInfo() {
86
- return this.axios.$get('user');
85
+ getInfo(params) {
86
+ return this.axios.$get('user', { params });
87
87
  }
88
88
  delete(id) {
89
89
  return this.axios.$delete(`users/${id}`);
@@ -1 +1 @@
1
- {"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../ts/api/resources/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EASL,IAAI,EACJ,eAAe,GAUhB,MAAM,aAAa,CAAC;AAErB,MAAM,OAAO,IAAK,SAAQ,QAAQ;IAChC,OAAO,CAAC,MAAoB;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;IACD,2BAA2B,CAAC,MAAmC;QAC7D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,MAAM,CAAC,EAAE,8BAA8B,CAAC,CAAC;IAC1E,CAAC;IACD,MAAM,CAAC,IAAgB;QACrB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;IAC/C,CAAC;IACD,QAAQ,CAAC,IAAoB;QAC3B,OAAO,IAAI,CAAC,K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ateUser,\n CreateCoworker,\n QueryUserSmsConfirmation,\n QueryGetAllFromSociety,\n ISociety,\n Role,\n TimeCounterType,\n QueryGetAllCollaborators,\n QueryGetAllCollaboratorsByRoles,\n QueryGetAllWithoutBp,\n CollaboratorsByRoles,\n QueryUserExport,\n UpdateCorworker,\n GetSocietyFromUser,\n RegisterProspectBody,\n RegisterProspectResponse,\n} from '../../types';\n\nexport class User extends Resource {\n confirm(params: QueryConfirm): Promise<IUser> {\n return this.axios.$put('user/confirm', params);\n }\n resendConfirmationEmailLink(params: QueryResendConfirmationLink): Promise<boolean> {\n return this.axios.$put(`user/${params.id}/resendConfirmationEmailLink`);\n }\n create(data: CreateUser): Promise<IUser> {\n return this.axios.$post('user/create', data);\n }\n coworker(data: CreateCoworker): Promise<IUser> {\n return this.axios.$post('user/coworker', data);\n }\n updateCoworker(idUser: number, params: UpdateCorworker): Promise<IUser> {\n const formData = new FormData();\n Object.entries(params).forEach(([key, value]) => {\n if (value || value === false || value === 0) {\n if (Array.isArray(value)) {\n value.forEach((v: number | string) => {\n formData.append(`${key}[]`, `${v}`);\n });\n } else if (key === 'file') formData.append('file', value);\n else formData.append(key, `${value}`);\n }\n });\n\n return this.axios.$put(`/user/coworker/${idUser}`, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n });\n }\n\n sendNewCode(id: number): Promise<IUser> {\n return this.axios.$put(`user/${id}/sendNewSmsCode`);\n }\n verifySmsCodeConfirmation(id: number, params: QueryUserSmsConfirmation): Promise<IUser> {\n return this.axios.$get(`user/${id}/verifySmsCodeConfirmation`, { params });\n }\n allFromSociety(params: QueryGetAllFromSociety): Promise<IUser[]> {\n return this.axios.$get('user/all-from-society', { params });\n }\n allWithoutBp(params: QueryGetAllWithoutBp): Promise<IUser[]> {\n return this.axios.$get('user/all-without-bp', { params });\n }\n allCollaborators(params: QueryGetAllCollaborators): Promise<IUser[]> {\n return this.axios.$get('user/all-collaborators', { params });\n }\n allCollaboratorsByRoles(data: QueryGetAllCollaboratorsByRoles): Promise<CollaboratorsByRoles[]> {\n const { idTimeCounterType, idRoles } = data;\n let params = { idRoles };\n if (idTimeCounterType) {\n const timeCounterType = Object.values(TimeCounterType).find((tct) => tct.id === idTimeCounterType);\n const rolesByDefault = [\n Role.FRONT_OFFICE,\n Role.FRONT_OFFICE_EXPRESS,\n Role.SOCIAL,\n Role.JURIDIC,\n Role.HUMAN_RESSOURCES,\n Role.FACTURATION,\n Role.CUSTOMER_SUCCESS,\n Role.COMMERCIAL,\n Role.MANAGER,\n Role.EXPERT_ACCOUNTANT,\n Role.DEVELOPER,\n Role.TECHNICAL_ADVISOR,\n ];\n params = { idRoles: timeCounterType?.limitedRoles ?? rolesByDefault };\n }\n return this.axios.$get('user/all-collaborators-by-roles', { params });\n }\n selectableTeammates(): Promise<IUser[]> {\n return this.axios.$get('user/selectable-teammates');\n }\n calendarSelectableTeammates(): Promise<IUser[]> {\n return this.axios.$get('user/calendar-selectable-teammates');\n }\n\n getAllSocieties(id: number, params: GetSocietyFromUser): Promise<ISociety[]> {\n return this.axios.$get(`/users/${id}/societies`, { params });\n }\n\n update(id: number, params: Partial<IUser> & { lastMobileConnection?: Date }): Promise<IUser> {\n return this.axios.$put(`user/${id}`, params);\n }\n getInfo(): Promise<IUser> {\n return this.axios.$get('user');\n }\n delete(id: number): Promise<number> {\n return this.axios.$delete(`users/${id}`);\n }\n\n getByRoles(params: { roles: Role[] }): Promise<IUser[]> {\n return this.axios.$get('users/roles', { params });\n }\n export(params: QueryUserExport): Promise<Buffer> {\n return this.axios.$get('users/export', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n registerProspect(body: RegisterProspectBody): Promise<RegisterProspectResponse> {\n return this.axios.$post('users/prospect', body);\n }\n}\n"]}
1
+ {"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../ts/api/resources/User.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAA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AC,CAAC;IAC3C,CAAC;IAED,UAAU,CAAC,MAAyB;QAClC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACpD,CAAC;IACD,MAAM,CAAC,MAAuB;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE;YACrC,MAAM;YACN,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IAED,gBAAgB,CAAC,IAA0B;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n IUser,\n QueryConfirm,\n QueryResendConfirmationLink,\n CreateUser,\n CreateCoworker,\n QueryUserSmsConfirmation,\n QueryGetAllFromSociety,\n ISociety,\n Role,\n TimeCounterType,\n QueryGetAllCollaborators,\n QueryGetAllCollaboratorsByRoles,\n QueryGetAllWithoutBp,\n CollaboratorsByRoles,\n QueryUserExport,\n UpdateCorworker,\n GetSocietyFromUser,\n RegisterProspectBody,\n RegisterProspectResponse,\n QueryGet,\n} from '../../types';\n\nexport class User extends Resource {\n confirm(params: QueryConfirm): Promise<IUser> {\n return this.axios.$put('user/confirm', params);\n }\n resendConfirmationEmailLink(params: QueryResendConfirmationLink): Promise<boolean> {\n return this.axios.$put(`user/${params.id}/resendConfirmationEmailLink`);\n }\n create(data: CreateUser): Promise<IUser> {\n return this.axios.$post('user/create', data);\n }\n coworker(data: CreateCoworker): Promise<IUser> {\n return this.axios.$post('user/coworker', data);\n }\n updateCoworker(idUser: number, params: UpdateCorworker): Promise<IUser> {\n const formData = new FormData();\n Object.entries(params).forEach(([key, value]) => {\n if (value || value === false || value === 0) {\n if (Array.isArray(value)) {\n value.forEach((v: number | string) => {\n formData.append(`${key}[]`, `${v}`);\n });\n } else if (key === 'file') formData.append('file', value);\n else formData.append(key, `${value}`);\n }\n });\n\n return this.axios.$put(`/user/coworker/${idUser}`, formData, {\n headers: { 'Content-Type': 'multipart/form-data' },\n });\n }\n\n sendNewCode(id: number): Promise<IUser> {\n return this.axios.$put(`user/${id}/sendNewSmsCode`);\n }\n verifySmsCodeConfirmation(id: number, params: QueryUserSmsConfirmation): Promise<IUser> {\n return this.axios.$get(`user/${id}/verifySmsCodeConfirmation`, { params });\n }\n allFromSociety(params: QueryGetAllFromSociety): Promise<IUser[]> {\n return this.axios.$get('user/all-from-society', { params });\n }\n allWithoutBp(params: QueryGetAllWithoutBp): Promise<IUser[]> {\n return this.axios.$get('user/all-without-bp', { params });\n }\n allCollaborators(params: QueryGetAllCollaborators): Promise<IUser[]> {\n return this.axios.$get('user/all-collaborators', { params });\n }\n allCollaboratorsByRoles(data: QueryGetAllCollaboratorsByRoles): Promise<CollaboratorsByRoles[]> {\n const { idTimeCounterType, idRoles } = data;\n let params = { idRoles };\n if (idTimeCounterType) {\n const timeCounterType = Object.values(TimeCounterType).find((tct) => tct.id === idTimeCounterType);\n const rolesByDefault = [\n Role.FRONT_OFFICE,\n Role.FRONT_OFFICE_EXPRESS,\n Role.SOCIAL,\n Role.JURIDIC,\n Role.HUMAN_RESSOURCES,\n Role.FACTURATION,\n Role.CUSTOMER_SUCCESS,\n Role.COMMERCIAL,\n Role.MANAGER,\n Role.EXPERT_ACCOUNTANT,\n Role.DEVELOPER,\n Role.TECHNICAL_ADVISOR,\n ];\n params = { idRoles: timeCounterType?.limitedRoles ?? rolesByDefault };\n }\n return this.axios.$get('user/all-collaborators-by-roles', { params });\n }\n selectableTeammates(): Promise<IUser[]> {\n return this.axios.$get('user/selectable-teammates');\n }\n calendarSelectableTeammates(): Promise<IUser[]> {\n return this.axios.$get('user/calendar-selectable-teammates');\n }\n\n getAllSocieties(id: number, params: GetSocietyFromUser): Promise<ISociety[]> {\n return this.axios.$get(`/users/${id}/societies`, { params });\n }\n\n update(id: number, params: Partial<IUser> & { lastMobileConnection?: Date }): Promise<IUser> {\n return this.axios.$put(`user/${id}`, params);\n }\n getInfo(params: QueryGet): Promise<IUser> {\n return this.axios.$get('user', { params });\n }\n delete(id: number): Promise<number> {\n return this.axios.$delete(`users/${id}`);\n }\n\n getByRoles(params: { roles: Role[] }): Promise<IUser[]> {\n return this.axios.$get('users/roles', { params });\n }\n export(params: QueryUserExport): Promise<Buffer> {\n return this.axios.$get('users/export', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n registerProspect(body: RegisterProspectBody): Promise<RegisterProspectResponse> {\n return this.axios.$post('users/prospect', body);\n }\n}\n"]}
@@ -19,7 +19,7 @@ export declare class CreateSubscriptionSession {
19
19
  priceId: string;
20
20
  }
21
21
  export declare class CreateSubscriptionSessionOff {
22
- stripeCustomerId: string;
22
+ stripeCustomerId?: string;
23
23
  ref: string;
24
24
  returnUrl?: string;
25
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,qBAAa,sBAAsB;IAGjC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,mBAAmB;IAG9B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,cAAc;IAGzB,EAAE,EAAE,MAAM,CAAC;IAIX,KAAK,EAAE,MAAM,CAAC;IAId,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,iCAAiC;IAI5C,SAAS,CAAC,EAAE,IAAI,CAAC;IAKjB,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB;AAED,qBAAa,yBAAyB;IAGpC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,4BAA4B;IAGvC,gBAAgB,EAAE,MAAM,CAAC;IAIzB,GAAG,EAAE,MAAM,CAAC;IAKZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,mBAAmB;IAG9B,gBAAgB,EAAE,MAAM,CAAC;IAIzB,eAAe,EAAE,MAAM,CAAC;IAIxB,aAAa,EAAE,MAAM,CAAC;IAGtB,QAAQ,CAAC,EAAE,MAAM,CAAC,aAAa,CAAC;CACjC"}
1
+ {"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,qBAAa,sBAAsB;IAGjC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,mBAAmB;IAG9B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,cAAc;IAGzB,EAAE,EAAE,MAAM,CAAC;IAIX,KAAK,EAAE,MAAM,CAAC;IAId,QAAQ,CAAC,EAAE,MAAM,CAAC;IAIlB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,iCAAiC;IAI5C,SAAS,CAAC,EAAE,IAAI,CAAC;IAKjB,OAAO,CAAC,EAAE,IAAI,CAAC;CAChB;AAED,qBAAa,yBAAyB;IAGpC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,4BAA4B;IAIvC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAI1B,GAAG,EAAE,MAAM,CAAC;IAKZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,mBAAmB;IAG9B,gBAAgB,EAAE,MAAM,CAAC;IAIzB,eAAe,EAAE,MAAM,CAAC;IAIxB,aAAa,EAAE,MAAM,CAAC;IAGtB,QAAQ,CAAC,EAAE,MAAM,CAAC,aAAa,CAAC;CACjC"}
@@ -81,7 +81,8 @@ export class CreateSubscriptionSessionOff {
81
81
  returnUrl;
82
82
  }
83
83
  __decorate([
84
- ApiProperty(),
84
+ ApiPropertyOptional(),
85
+ IsOptional(),
85
86
  IsString(),
86
87
  __metadata("design:type", String)
87
88
  ], CreateSubscriptionSessionOff.prototype, "stripeCustomerId", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,MAAM,OAAO,sBAAsB;IAGjC,IAAI,CAAS;CACd;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;oDACE;AAGf,MAAM,OAAO,mBAAmB;IAG9B,gBAAgB,CAAS;CAC1B;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6DACc;AAG3B,MAAM,OAAO,cAAc;IAGzB,EAAE,CAAS;IAIX,KAAK,CAAS;IAId,QAAQ,CAAU;IAIlB,SAAS,CAAU;CACpB;AAbC;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;0CACG;AAIX;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6CACG;AAId;IAFC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;;gDACO;AAIlB;IAFC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;;iDACQ;AAGrB,MAAM,OAAO,iCAAiC;IAI5C,SAAS,CAAQ;IAKjB,OAAO,CAAQ;CAChB;AANC;IAHC,mBAAmB,EAAE;IACrB,MAAM,EAAE;IACR,UAAU,EAAE;8BACD,IAAI;oEAAC;AAKjB;IAHC,mBAAmB,EAAE;IACrB,MAAM,EAAE;IACR,UAAU,EAAE;8BACH,IAAI;kEAAC;AAGjB,MAAM,OAAO,yBAAyB;IAGpC,OAAO,CAAS;CACjB;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;0DACK;AAGlB,MAAM,OAAO,4BAA4B;IAGvC,gBAAgB,CAAS;IAIzB,GAAG,CAAS;IAKZ,SAAS,CAAU;CACpB;AAVC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;sEACc;AAIzB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;yDACC;AAKZ;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;+DACQ;AAGrB,MAAM,OAAO,mBAAmB;IAG9B,gBAAgB,CAAS;IAIzB,eAAe,CAAS;IAIxB,aAAa,CAAS;IAGtB,QAAQ,CAAwB;CACjC;AAZC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6DACc;AAIzB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;4DACa;AAIxB;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;0DACc;AAGtB;IADC,mBAAmB,EAAE;;qDACU","sourcesContent":["import { IsDate, IsInt, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport type Stripe from 'stripe';\nexport class CreateStripeConnection {\n @ApiProperty()\n @IsString()\n code: string;\n}\n\nexport class CreateStripePortals {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n}\n\nexport class CreateCustomer {\n @ApiProperty()\n @IsInt()\n id: number;\n\n @ApiProperty()\n @IsString()\n email: string;\n\n @ApiPropertyOptional()\n @IsString()\n lastname?: string;\n\n @ApiPropertyOptional()\n @IsString()\n firstname?: string;\n}\n\nexport class CreateImportTransactionForSociety {\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n startDate?: Date;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n endDate?: Date;\n}\n\nexport class CreateSubscriptionSession {\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateSubscriptionSessionOff {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiProperty()\n @IsString()\n ref: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreatePaymentIntent {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiProperty()\n @IsString()\n paymentMethodId: string;\n\n @ApiProperty()\n @IsInt()\n amountInCents: number;\n\n @ApiPropertyOptional()\n metadata?: Stripe.MetadataParam;\n}\n"]}
1
+ {"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/stripe/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,MAAM,OAAO,sBAAsB;IAGjC,IAAI,CAAS;CACd;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;oDACE;AAGf,MAAM,OAAO,mBAAmB;IAG9B,gBAAgB,CAAS;CAC1B;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6DACc;AAG3B,MAAM,OAAO,cAAc;IAGzB,EAAE,CAAS;IAIX,KAAK,CAAS;IAId,QAAQ,CAAU;IAIlB,SAAS,CAAU;CACpB;AAbC;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;0CACG;AAIX;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6CACG;AAId;IAFC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;;gDACO;AAIlB;IAFC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;;iDACQ;AAGrB,MAAM,OAAO,iCAAiC;IAI5C,SAAS,CAAQ;IAKjB,OAAO,CAAQ;CAChB;AANC;IAHC,mBAAmB,EAAE;IACrB,MAAM,EAAE;IACR,UAAU,EAAE;8BACD,IAAI;oEAAC;AAKjB;IAHC,mBAAmB,EAAE;IACrB,MAAM,EAAE;IACR,UAAU,EAAE;8BACH,IAAI;kEAAC;AAGjB,MAAM,OAAO,yBAAyB;IAGpC,OAAO,CAAS;CACjB;AADC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;0DACK;AAGlB,MAAM,OAAO,4BAA4B;IAIvC,gBAAgB,CAAU;IAI1B,GAAG,CAAS;IAKZ,SAAS,CAAU;CACpB;AAVC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;sEACe;AAI1B;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;yDACC;AAKZ;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;+DACQ;AAGrB,MAAM,OAAO,mBAAmB;IAG9B,gBAAgB,CAAS;IAIzB,eAAe,CAAS;IAIxB,aAAa,CAAS;IAGtB,QAAQ,CAAwB;CACjC;AAZC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6DACc;AAIzB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;4DACa;AAIxB;IAFC,WAAW,EAAE;IACb,KAAK,EAAE;;0DACc;AAGtB;IADC,mBAAmB,EAAE;;qDACU","sourcesContent":["import { IsDate, IsInt, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport type Stripe from 'stripe';\nexport class CreateStripeConnection {\n @ApiProperty()\n @IsString()\n code: string;\n}\n\nexport class CreateStripePortals {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n}\n\nexport class CreateCustomer {\n @ApiProperty()\n @IsInt()\n id: number;\n\n @ApiProperty()\n @IsString()\n email: string;\n\n @ApiPropertyOptional()\n @IsString()\n lastname?: string;\n\n @ApiPropertyOptional()\n @IsString()\n firstname?: string;\n}\n\nexport class CreateImportTransactionForSociety {\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n startDate?: Date;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n endDate?: Date;\n}\n\nexport class CreateSubscriptionSession {\n @ApiProperty()\n @IsString()\n priceId: string;\n}\n\nexport class CreateSubscriptionSessionOff {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n stripeCustomerId?: string;\n\n @ApiProperty()\n @IsString()\n ref: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n returnUrl?: string;\n}\n\nexport class CreatePaymentIntent {\n @ApiProperty()\n @IsString()\n stripeCustomerId: string;\n\n @ApiProperty()\n @IsString()\n paymentMethodId: string;\n\n @ApiProperty()\n @IsInt()\n amountInCents: number;\n\n @ApiPropertyOptional()\n metadata?: Stripe.MetadataParam;\n}\n"]}
@@ -48,4 +48,7 @@ export declare class QueryUserExport {
48
48
  idTypeSubscription?: number;
49
49
  reason?: number[];
50
50
  }
51
+ export declare class QueryGet {
52
+ withNewToken?: boolean;
53
+ }
51
54
  //# sourceMappingURL=Query.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/Query.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,qBAAa,YAAY;IAEvB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,wBAAwB;IAOnC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAQlB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,qBAAa,+BAA+B;IAI1C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAQ3B,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,qBAAa,sBAAsB;IAOjC,SAAS,EAAE,MAAM,CAAC;IASlB,KAAK,EAAE,MAAM,EAAE,CAAC;IAMhB,yBAAyB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED,qBAAa,oBAAoB;IAO/B,SAAS,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;AAED,qBAAa,QAAQ;IAKnB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB"}
@@ -150,13 +150,36 @@ __decorate([
150
150
  ], GetSocietyFromUser.prototype, "attributes", void 0);
151
151
  __decorate([
152
152
  ApiPropertyOptional({
153
- default: ['societyConfig', 'brandType', 'societyGescom', 'oldExpertInfo', 'activity', 'follows', 'compta', 'subscriptionType', 'connector', 'permissions']
153
+ default: [
154
+ 'societyConfig',
155
+ 'brandType',
156
+ 'societyGescom',
157
+ 'oldExpertInfo',
158
+ 'activity',
159
+ 'follows',
160
+ 'compta',
161
+ 'subscriptionType',
162
+ 'connector',
163
+ 'permissions',
164
+ ],
154
165
  }),
155
166
  IsOptional(),
156
167
  IsString({
157
168
  each: true,
158
169
  }),
159
- IsIn(['societyConfig', 'brandType', 'societyGescom', 'oldExpertInfo', 'activity', 'follows', 'compta', 'subscriptionType', 'connector', 'permissions', 'societyDetails'], { each: true }),
170
+ IsIn([
171
+ 'societyConfig',
172
+ 'brandType',
173
+ 'societyGescom',
174
+ 'oldExpertInfo',
175
+ 'activity',
176
+ 'follows',
177
+ 'compta',
178
+ 'subscriptionType',
179
+ 'connector',
180
+ 'permissions',
181
+ 'societyDetails',
182
+ ], { each: true }),
160
183
  __metadata("design:type", Array)
161
184
  ], GetSocietyFromUser.prototype, "include", void 0);
162
185
  __decorate([
@@ -239,4 +262,14 @@ __decorate([
239
262
  IsArray(),
240
263
  __metadata("design:type", Array)
241
264
  ], QueryUserExport.prototype, "reason", void 0);
265
+ export class QueryGet {
266
+ withNewToken;
267
+ }
268
+ __decorate([
269
+ ApiPropertyOptional(),
270
+ IsOptional(),
271
+ IsBoolean(),
272
+ ToBoolean(),
273
+ __metadata("design:type", Boolean)
274
+ ], QueryGet.prototype, "withNewToken", void 0);
242
275
  //# sourceMappingURL=Query.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/Query.ts"],"names":[],"mappings":";;;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,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;gDACM;AAMjB;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;gDACM;AAKlB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;6CACG;AAKd;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;2DACiB;AAK5B;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,OAAO,EAAE;;+CACQ","sourcesContent":["import { IsArray, IsBoolean, IsIn, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { SubscriptionType } from '../../../Enum/SubscriptionType';\nimport { WhereOptions } from 'sequelize';\nimport { ISociety } from '../../models/ISociety';\n\nexport class QueryConfirm {\n @ApiProperty()\n tokenConfirmedAt: string;\n\n @ApiProperty()\n email: string;\n}\n\nexport class QueryGetAllCollaborators {\n @ApiProperty({\n description: 'filtering users id',\n required: false,\n type: [Number],\n example: [1, 13],\n })\n idUser?: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString({\n each: true,\n })\n @IsIn(['avatar', 'teams', 'businessLines', 'collaboraterDetails'], { each: true })\n include?: string[];\n}\n\nexport class QueryGetAllCollaboratorsByRoles {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idTimeCounterType?: number;\n\n @ApiProperty({\n description: 'roles used for group users',\n required: true,\n type: [Number],\n example: [1, 13],\n })\n idRoles: number[];\n}\n\nexport class QueryGetAllFromSociety {\n @ApiProperty({\n description: 'id of the specified society',\n required: true,\n type: Number,\n example: 100,\n })\n idSociety: number;\n\n @ApiProperty({\n description: 'array of roles id needed to return list of users',\n required: true,\n type: [Number],\n example: [1, 13],\n })\n @IsArray()\n roles: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n usersNotInBusinessPartner?: boolean;\n}\n\nexport class QueryGetAllWithoutBp {\n @ApiProperty({\n description: 'id of the specified society',\n required: true,\n type: Number,\n example: 100,\n })\n idSociety: number;\n}\n\nexport class QueryResendConfirmationLink {\n @ApiProperty()\n id: number;\n}\n\nexport class GetSocietyFromUser {\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idSubscriptionType?: SubscriptionType;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n displayArchived?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n onlyLabAccepted?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString({ each: true })\n attributes?: Extract<keyof ISociety, string>[];\n\n @ApiPropertyOptional({\n default: ['societyConfig', 'brandType', 'societyGescom', 'oldExpertInfo', 'activity', 'follows', 'compta', 'subscriptionType', 'connector', 'permissions']\n })\n @IsOptional()\n @IsString({\n each: true,\n })\n @IsIn(['societyConfig', 'brandType', 'societyGescom', 'oldExpertInfo', 'activity', 'follows', 'compta', 'subscriptionType', 'connector', 'permissions', 'societyDetails'], { each: true })\n include?: string[];\n\n @ApiPropertyOptional()\n @IsOptional()\n where?: WhereOptions<ISociety>;\n}\n\nexport class QueryUpdatePassword {\n @ApiProperty()\n @IsString()\n password: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @Min(1)\n id?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n token?: string | null;\n}\n\nexport class QueryUserSmsConfirmation {\n @ApiProperty()\n code: string;\n}\n\nexport class QueryUserExport {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n dateStart?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n dateEnd?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n archive?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n week?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idTypeSubscription?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n reason?: number[];\n}\n"]}
1
+ {"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/user/Query.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACvG,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAIlE,MAAM,OAAO,YAAY;IAEvB,gBAAgB,CAAS;IAGzB,KAAK,CAAS;CACf;AAJC;IADC,WAAW,EAAE;;sDACW;AAGzB;IADC,WAAW,EAAE;;2CACA;AAGhB,MAAM,OAAO,wBAAwB;IAOnC,MAAM,CAAY;IAQlB,OAAO,CAAY;CACpB;AATC;IANC,WAAW,CAAC;QACX,WAAW,EAAE,oBAAoB;QACjC,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;KACjB,CAAC;;wDACgB;AAQlB;IANC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,CAAC;QACR,IAAI,EAAE,IAAI;KACX,CAAC;IACD,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,EAAE,eAAe,EAAE,qBAAqB,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;yDAC/D;AAGrB,MAAM,OAAO,+BAA+B;IAI1C,iBAAiB,CAAU;IAQ3B,OAAO,CAAW;CAC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AO,eAAe;IAI1B,SAAS,CAAU;IAKnB,OAAO,CAAU;IAMjB,OAAO,CAAW;IAKlB,IAAI,CAAU;IAKd,kBAAkB,CAAU;IAK5B,MAAM,CAAY;CACnB;AA3BC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;kDACQ;AAKnB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;gDACM;AAMjB;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;gDACM;AAKlB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;6CACG;AAKd;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;2DACiB;AAK5B;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,OAAO,EAAE;;+CACQ;AAGpB,MAAM,OAAO,QAAQ;IAKnB,YAAY,CAAW;CACxB;AADC;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,SAAS,EAAE;IACX,SAAS,EAAE;;8CACW","sourcesContent":["import { IsArray, IsBoolean, IsIn, IsInt, IsNumber, IsOptional, IsString, Min } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { SubscriptionType } from '../../../Enum/SubscriptionType';\nimport { WhereOptions } from 'sequelize';\nimport { ISociety } from '../../models/ISociety';\n\nexport class QueryConfirm {\n @ApiProperty()\n tokenConfirmedAt: string;\n\n @ApiProperty()\n email: string;\n}\n\nexport class QueryGetAllCollaborators {\n @ApiProperty({\n description: 'filtering users id',\n required: false,\n type: [Number],\n example: [1, 13],\n })\n idUser?: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString({\n each: true,\n })\n @IsIn(['avatar', 'teams', 'businessLines', 'collaboraterDetails'], { each: true })\n include?: string[];\n}\n\nexport class QueryGetAllCollaboratorsByRoles {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idTimeCounterType?: number;\n\n @ApiProperty({\n description: 'roles used for group users',\n required: true,\n type: [Number],\n example: [1, 13],\n })\n idRoles: number[];\n}\n\nexport class QueryGetAllFromSociety {\n @ApiProperty({\n description: 'id of the specified society',\n required: true,\n type: Number,\n example: 100,\n })\n idSociety: number;\n\n @ApiProperty({\n description: 'array of roles id needed to return list of users',\n required: true,\n type: [Number],\n example: [1, 13],\n })\n @IsArray()\n roles: number[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n usersNotInBusinessPartner?: boolean;\n}\n\nexport class QueryGetAllWithoutBp {\n @ApiProperty({\n description: 'id of the specified society',\n required: true,\n type: Number,\n example: 100,\n })\n idSociety: number;\n}\n\nexport class QueryResendConfirmationLink {\n @ApiProperty()\n id: number;\n}\n\nexport class GetSocietyFromUser {\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idSubscriptionType?: SubscriptionType;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n displayArchived?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n onlyLabAccepted?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString({ each: true })\n attributes?: Extract<keyof ISociety, string>[];\n\n @ApiPropertyOptional({\n default: [\n 'societyConfig',\n 'brandType',\n 'societyGescom',\n 'oldExpertInfo',\n 'activity',\n 'follows',\n 'compta',\n 'subscriptionType',\n 'connector',\n 'permissions',\n ],\n })\n @IsOptional()\n @IsString({\n each: true,\n })\n @IsIn(\n [\n 'societyConfig',\n 'brandType',\n 'societyGescom',\n 'oldExpertInfo',\n 'activity',\n 'follows',\n 'compta',\n 'subscriptionType',\n 'connector',\n 'permissions',\n 'societyDetails',\n ],\n { each: true },\n )\n include?: string[];\n\n @ApiPropertyOptional()\n @IsOptional()\n where?: WhereOptions<ISociety>;\n}\n\nexport class QueryUpdatePassword {\n @ApiProperty()\n @IsString()\n password: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n @Min(1)\n id?: number | null;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n token?: string | null;\n}\n\nexport class QueryUserSmsConfirmation {\n @ApiProperty()\n code: string;\n}\n\nexport class QueryUserExport {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n dateStart?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n dateEnd?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n archive?: boolean;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n week?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idTypeSubscription?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n reason?: number[];\n}\n\nexport class QueryGet {\n @ApiPropertyOptional()\n @IsOptional()\n @IsBoolean()\n @ToBoolean()\n withNewToken?: boolean;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.3.45",
3
+ "version": "1.3.46",
4
4
  "description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
5
5
  "homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
6
6
  "main": "dist/cjs/index.js",
@@ -19,6 +19,7 @@ import {
19
19
  GetSocietyFromUser,
20
20
  RegisterProspectBody,
21
21
  RegisterProspectResponse,
22
+ QueryGet,
22
23
  } from '../../types';
23
24
 
24
25
  export class User extends Resource {
@@ -104,8 +105,8 @@ export class User extends Resource {
104
105
  update(id: number, params: Partial<IUser> & { lastMobileConnection?: Date }): Promise<IUser> {
105
106
  return this.axios.$put(`user/${id}`, params);
106
107
  }
107
- getInfo(): Promise<IUser> {
108
- return this.axios.$get('user');
108
+ getInfo(params: QueryGet): Promise<IUser> {
109
+ return this.axios.$get('user', { params });
109
110
  }
110
111
  delete(id: number): Promise<number> {
111
112
  return this.axios.$delete(`users/${id}`);
@@ -50,9 +50,10 @@ export class CreateSubscriptionSession {
50
50
  }
51
51
 
52
52
  export class CreateSubscriptionSessionOff {
53
- @ApiProperty()
53
+ @ApiPropertyOptional()
54
+ @IsOptional()
54
55
  @IsString()
55
- stripeCustomerId: string;
56
+ stripeCustomerId?: string;
56
57
 
57
58
  @ApiProperty()
58
59
  @IsString()
@@ -110,13 +110,39 @@ export class GetSocietyFromUser {
110
110
  attributes?: Extract<keyof ISociety, string>[];
111
111
 
112
112
  @ApiPropertyOptional({
113
- default: ['societyConfig', 'brandType', 'societyGescom', 'oldExpertInfo', 'activity', 'follows', 'compta', 'subscriptionType', 'connector', 'permissions']
113
+ default: [
114
+ 'societyConfig',
115
+ 'brandType',
116
+ 'societyGescom',
117
+ 'oldExpertInfo',
118
+ 'activity',
119
+ 'follows',
120
+ 'compta',
121
+ 'subscriptionType',
122
+ 'connector',
123
+ 'permissions',
124
+ ],
114
125
  })
115
126
  @IsOptional()
116
127
  @IsString({
117
128
  each: true,
118
129
  })
119
- @IsIn(['societyConfig', 'brandType', 'societyGescom', 'oldExpertInfo', 'activity', 'follows', 'compta', 'subscriptionType', 'connector', 'permissions', 'societyDetails'], { each: true })
130
+ @IsIn(
131
+ [
132
+ 'societyConfig',
133
+ 'brandType',
134
+ 'societyGescom',
135
+ 'oldExpertInfo',
136
+ 'activity',
137
+ 'follows',
138
+ 'compta',
139
+ 'subscriptionType',
140
+ 'connector',
141
+ 'permissions',
142
+ 'societyDetails',
143
+ ],
144
+ { each: true },
145
+ )
120
146
  include?: string[];
121
147
 
122
148
  @ApiPropertyOptional()
@@ -178,3 +204,11 @@ export class QueryUserExport {
178
204
  @IsArray()
179
205
  reason?: number[];
180
206
  }
207
+
208
+ export class QueryGet {
209
+ @ApiPropertyOptional()
210
+ @IsOptional()
211
+ @IsBoolean()
212
+ @ToBoolean()
213
+ withNewToken?: boolean;
214
+ }