@silexpert/core 0.4.220 → 0.4.224

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.
@@ -1,13 +1,13 @@
1
1
  import { Resource } from '../Resource';
2
2
  export class NotificationSetting extends Resource {
3
3
  getAllByUser(idUser) {
4
- return this.axios.$get(`notifications/settins/${idUser}`);
4
+ return this.axios.$get(`users/${idUser}/notifications/settings`);
5
5
  }
6
6
  create(idUser, body) {
7
- return this.axios.$post(`notifications/settings/${idUser}/create`, body);
7
+ return this.axios.$post(`users/${idUser}/notifications/settings/create`, body);
8
8
  }
9
9
  update(idUser, body) {
10
- return this.axios.$put(`notifications/settings/${idUser}`, body);
10
+ return this.axios.$put(`users/${idUser}/notifications/settings`, body);
11
11
  }
12
12
  }
13
13
  //# sourceMappingURL=NotificationSetting.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationSetting.js","sourceRoot":"","sources":["../../../ts/api/resources/NotificationSetting.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,mBAAoB,SAAQ,QAAQ;IAC/C,YAAY,CAAC,MAAc;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,yBAAyB,MAAM,EAAE,CAAC,CAAC;IAC5D,CAAC;IACD,MAAM,CAAC,MAAc,EAAE,IAAiC;QACtD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,0BAA0B,MAAM,SAAS,EAAE,IAAI,CAAC,CAAC;IAC3E,CAAC;IAED,MAAM,CAAC,MAAc,EAAE,IAA+B;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,0BAA0B,MAAM,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;CACF","sourcesContent":["import { CreateNotificationSetting, IMobileNotificationSetting, UpdateNotificationSetting } from '../../types';\nimport { Resource } from '../Resource';\n\nexport class NotificationSetting extends Resource {\n getAllByUser(idUser: number): Promise<IMobileNotificationSetting[]> {\n return this.axios.$get(`notifications/settins/${idUser}`);\n }\n create(idUser: number, body: CreateNotificationSetting[]): Promise<IMobileNotificationSetting[]> {\n return this.axios.$post(`notifications/settings/${idUser}/create`, body);\n }\n\n update(idUser: number, body: UpdateNotificationSetting): Promise<IMobileNotificationSetting> {\n return this.axios.$put(`notifications/settings/${idUser}`, body);\n }\n}"]}
1
+ {"version":3,"file":"NotificationSetting.js","sourceRoot":"","sources":["../../../ts/api/resources/NotificationSetting.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,mBAAoB,SAAQ,QAAQ;IAC/C,YAAY,CAAC,MAAc;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,MAAM,yBAAyB,CAAC,CAAC;IACnE,CAAC;IACD,MAAM,CAAC,MAAc,EAAE,IAAiC;QACtD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,MAAM,gCAAgC,EAAE,IAAI,CAAC,CAAC;IACjF,CAAC;IAED,MAAM,CAAC,MAAc,EAAE,IAA+B;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,MAAM,yBAAyB,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;CACF","sourcesContent":["import { CreateNotificationSetting, IMobileNotificationSetting, UpdateNotificationSetting } from '../../types';\nimport { Resource } from '../Resource';\n\nexport class NotificationSetting extends Resource {\n getAllByUser(idUser: number): Promise<IMobileNotificationSetting[]> {\n return this.axios.$get(`users/${idUser}/notifications/settings`);\n }\n create(idUser: number, body: CreateNotificationSetting[]): Promise<IMobileNotificationSetting[]> {\n return this.axios.$post(`users/${idUser}/notifications/settings/create`, body);\n }\n\n update(idUser: number, body: UpdateNotificationSetting): Promise<IMobileNotificationSetting> {\n return this.axios.$put(`users/${idUser}/notifications/settings`, body);\n }\n}"]}
@@ -77,7 +77,7 @@ export interface ISociety {
77
77
  cashbook: boolean | null;
78
78
  balanceZero: boolean | null;
79
79
  mailRecovery: boolean | null;
80
- FolderIsFinished: boolean | null;
80
+ folderIsFinished: boolean | null;
81
81
  hideInformationsBanner: boolean | null;
82
82
  dateUploadTva: Date | null;
83
83
  vatUploadDay: number | null;
@@ -1 +1 @@
1
- {"version":3,"file":"ISociety.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/ISociety.ts"],"names":[],"mappings":"","sourcesContent":["import { IAccount } from './IAccount';\nimport { IComment } from './IComment';\nimport { IThirdParty } from './IThirdParty';\nimport { IReport } from './IReport';\nimport { IConnector } from './IConnector';\nimport { IBankConnection } from './IBankConnection';\nimport { IFollowedQualityMail } from './IFollowedQualityMail';\nimport { IFollow } from './IFollow';\nimport { IPaymentExpectation } from './IPaymentExpectation';\nimport { ILegalForm } from './ILegalForm';\nimport { IOldExpertInfo } from './IOldExpertInfo';\nimport { IPrestation } from './IPrestation';\nimport { ISector } from './ISector';\nimport { IRefund } from './IRefund';\nimport { IBankAccount } from './IBankAccount';\nimport { ISocietyBank } from './ISocietyBank';\nimport { IComptaType } from './IComptaType';\nimport { ISubscriptionType } from './ISubscriptionType';\nimport { ISocietyConfig } from './ISocietyConfig';\nimport { ISocietyGescom } from './ISocietyGescom';\nimport { ISocietyCgv } from './ISocietyCgv';\nimport { IFormalism } from './IFormalism';\nimport { ISocietyNote } from './ISocietyNote';\nimport { ITaxSystem } from './ITaxSystem';\nimport { IVatRegime } from './IVatRegime';\nimport { IFiscalRegime } from './IFiscalRegime';\nimport { ISource } from './ISource';\nimport { IAnalyticsUtm } from './IAnalyticsUtm';\nimport { IActivity } from './IActivity';\nimport { ISoftwareCompta } from './ISoftwareCompta';\nimport { IAccessToken } from './IAccessToken';\nimport { ICotation } from './ICotation';\nimport { ISocietyVehicle } from './ISocietyVehicle';\nimport { ICountry } from './ICountry';\nimport { ITerminationList } from './ITerminationList';\nimport { ISocietyFile } from './ISocietyFile';\nimport { ISocietyDetail } from './ISocietyDetail';\nimport { ISocietySocial } from './ISocietySocial';\nimport { ISocietyJuridical } from './ISocietyJuridical';\nimport { IPaymentWaiting } from './IPaymentWaiting';\nimport { IExercice } from './IExercice';\nimport { IWebMail } from './IWebMail';\nimport { ISocietyProceding } from './ISocietyProceding';\nimport { ISocietyStat } from './ISocietyStat';\nimport { ISurvey } from './ISurvey';\nimport { ILog } from './ILog';\nimport { ISms } from './ISms';\nimport { IUser } from './IUser';\nimport { ISocietyEvent } from './ISocietyEvent';\nimport {\n ComptaType, Country, INafCode, IPartneredAccountantCompanyService, Sector, UnpaidDetail, IPartneredAccountantToSociety, IMail,\n} from '../..';\nimport { IBrandType } from './IBrandType';\n\n// societies\nexport interface ISociety {\n id?: number;\n name: string | null;\n commercialName: string | null;\n descriptionActivity: string | null;\n dateOfRegistration: Date | null;\n dateInscription: Date | null;\n dateIsClient: Date | null;\n partnerSubscriptionECDate: Date | null;\n dateStatus: Date | null;\n socialStatut: number | null;\n juridicalStatut: number | null;\n mailSocial: Date | null;\n mailJuridical: Date | null;\n city: string | null;\n zipCode: string | null;\n address: string | null;\n siret: string | null;\n diaCode: string | null;\n socialCapital: string | null;\n archive: boolean;\n archiveDate: Date | null;\n isBlocked: boolean | null;\n autoAnnotate: boolean;\n managementSoftware: boolean | null;\n cashbook: boolean | null;\n balanceZero: boolean | null;\n mailRecovery: boolean | null;\n FolderIsFinished: boolean | null;\n hideInformationsBanner: boolean | null;\n dateUploadTva: Date | null;\n vatUploadDay: number | null;\n lockImposition: boolean | null;\n lockTva: boolean | null;\n isWaitingEnd: boolean | null;\n waitFirstContact: boolean | null;\n sendFirstContact: boolean | null;\n toConstitution: number | null;\n passwordIsuite: string | null;\n numberFrp: string | null;\n socialParts: string | null;\n numberSie: string | null;\n aga: string | null;\n statutoryAuditor: string | null;\n typeSales: string | null;\n dateRelanceCommercial: Date | null;\n firstPayslipDate: Date | null;\n totalSharesHeld: number | null;\n idVatRegime: number | null;\n idTaxSystem: number | null;\n idActivity: number | null;\n profitsType: number | null;\n idSource: number | null;\n idFiscalRegime: number | null;\n idRegion: number | null;\n idLegalForm: number | null;\n idComptaType: ComptaType | null;\n idTypeBrand: number | null;\n idSubscriptionType: number | null;\n idCountry: Country | null;\n idSector: Sector | null;\n idSocietyNotes: number | null;\n folderNote: string | null;\n oldNafCode: string | null;\n dateSendAdvise: Date | null;\n idUserAdvise: number | null;\n idVatForInternalInvoicing: number;\n dateFirstSendUnpaid: Date | null;\n reasonUnpaid: number | null;\n stripeSubscriptionId: string | null;\n stateSynchroBankAccount: number | null;\n noShowPopUpSynchroDate: Date | null;\n stateFollowCall: number | null;\n hideSimulationBetaMessage: boolean;\n unpaid: number | null;\n isLate: boolean | null;\n unpaidDetails: UnpaidDetail[] | null;\n owner: string | null;\n social: string | null;\n exercices: string | null;\n recoveryDate: string | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n startAt?: Date | null;\n idSoftware: number | null;\n canceledFirstStepAt: Date | null;\n completedFirstStepAt: Date | null;\n lastMobileConnection: Date | null;\n idNafCode: number | null;\n canceledFirstStepTourAt: Date | null;\n step: string | null;\n hidePartneredAccountantsBubbleLink: boolean | null;\n cancelCompleteCreationModal: Date | null;\n isCreatedInApp: boolean;\n\n // Associations\n accounts?: IAccount[];\n comments?: IComment[];\n thirdParty?: IThirdParty[];\n reports?: IReport[];\n connectors?: IConnector[];\n bankConnections?: IBankConnection[];\n societiesFollowedQualityMail?: IFollowedQualityMail[];\n societyFollow?: IFollow[];\n paymentsExpectations?: IPaymentExpectation[];\n legalForm?: ILegalForm;\n oldExpertInfo?: IOldExpertInfo;\n prestationsSocieties?: IPrestation[];\n sector?: ISector;\n refunds?: IRefund[];\n bankAccounts?: IBankAccount[];\n bankPayment?: ISocietyBank;\n compta?: IComptaType;\n typeSubscription?: ISubscriptionType;\n config?: ISocietyConfig;\n gescom?: ISocietyGescom;\n societyCgv?: ISocietyCgv;\n formalism?: IFormalism;\n notes?: ISocietyNote;\n taxSystem?: ITaxSystem;\n tvaRegime?: IVatRegime;\n fiscalRegime?: IFiscalRegime;\n source?: ISource;\n nafCode?: INafCode;\n analyticsUtm?: IAnalyticsUtm;\n activity?: IActivity;\n softwareCompta?: ISoftwareCompta;\n accessToken?: IAccessToken;\n cotations?: ICotation[];\n societyVehicles?: ISocietyVehicle[];\n societyCountry?: ICountry;\n terminationsList?: ITerminationList;\n societyFiles?: ISocietyFile[];\n societyDetail?: ISocietyDetail;\n societySocials?: ISocietySocial[];\n societyJuridical?: ISocietyJuridical;\n paymentWaitings?: IPaymentWaiting[];\n societyExercices?: IExercice[];\n webmailMails?: IWebMail[];\n societyProcedings?: ISocietyProceding[];\n societyStats?: ISocietyStat[];\n survey?: ISurvey[];\n logs?: ILog[];\n sms?: ISms[];\n users?: IUser[];\n brandType?: IBrandType;\n partneredAccountantCompaniesServices: IPartneredAccountantCompanyService[];\n partneredAccountantRelated: IPartneredAccountantToSociety;\n events: ISocietyEvent[];\n mails: IMail[];\n}\n"]}
1
+ {"version":3,"file":"ISociety.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/ISociety.ts"],"names":[],"mappings":"","sourcesContent":["import { IAccount } from './IAccount';\nimport { IComment } from './IComment';\nimport { IThirdParty } from './IThirdParty';\nimport { IReport } from './IReport';\nimport { IConnector } from './IConnector';\nimport { IBankConnection } from './IBankConnection';\nimport { IFollowedQualityMail } from './IFollowedQualityMail';\nimport { IFollow } from './IFollow';\nimport { IPaymentExpectation } from './IPaymentExpectation';\nimport { ILegalForm } from './ILegalForm';\nimport { IOldExpertInfo } from './IOldExpertInfo';\nimport { IPrestation } from './IPrestation';\nimport { ISector } from './ISector';\nimport { IRefund } from './IRefund';\nimport { IBankAccount } from './IBankAccount';\nimport { ISocietyBank } from './ISocietyBank';\nimport { IComptaType } from './IComptaType';\nimport { ISubscriptionType } from './ISubscriptionType';\nimport { ISocietyConfig } from './ISocietyConfig';\nimport { ISocietyGescom } from './ISocietyGescom';\nimport { ISocietyCgv } from './ISocietyCgv';\nimport { IFormalism } from './IFormalism';\nimport { ISocietyNote } from './ISocietyNote';\nimport { ITaxSystem } from './ITaxSystem';\nimport { IVatRegime } from './IVatRegime';\nimport { IFiscalRegime } from './IFiscalRegime';\nimport { ISource } from './ISource';\nimport { IAnalyticsUtm } from './IAnalyticsUtm';\nimport { IActivity } from './IActivity';\nimport { ISoftwareCompta } from './ISoftwareCompta';\nimport { IAccessToken } from './IAccessToken';\nimport { ICotation } from './ICotation';\nimport { ISocietyVehicle } from './ISocietyVehicle';\nimport { ICountry } from './ICountry';\nimport { ITerminationList } from './ITerminationList';\nimport { ISocietyFile } from './ISocietyFile';\nimport { ISocietyDetail } from './ISocietyDetail';\nimport { ISocietySocial } from './ISocietySocial';\nimport { ISocietyJuridical } from './ISocietyJuridical';\nimport { IPaymentWaiting } from './IPaymentWaiting';\nimport { IExercice } from './IExercice';\nimport { IWebMail } from './IWebMail';\nimport { ISocietyProceding } from './ISocietyProceding';\nimport { ISocietyStat } from './ISocietyStat';\nimport { ISurvey } from './ISurvey';\nimport { ILog } from './ILog';\nimport { ISms } from './ISms';\nimport { IUser } from './IUser';\nimport { ISocietyEvent } from './ISocietyEvent';\nimport {\n ComptaType, Country, INafCode, IPartneredAccountantCompanyService, Sector, UnpaidDetail, IPartneredAccountantToSociety, IMail,\n} from '../..';\nimport { IBrandType } from './IBrandType';\n\n// societies\nexport interface ISociety {\n id?: number;\n name: string | null;\n commercialName: string | null;\n descriptionActivity: string | null;\n dateOfRegistration: Date | null;\n dateInscription: Date | null;\n dateIsClient: Date | null;\n partnerSubscriptionECDate: Date | null;\n dateStatus: Date | null;\n socialStatut: number | null;\n juridicalStatut: number | null;\n mailSocial: Date | null;\n mailJuridical: Date | null;\n city: string | null;\n zipCode: string | null;\n address: string | null;\n siret: string | null;\n diaCode: string | null;\n socialCapital: string | null;\n archive: boolean;\n archiveDate: Date | null;\n isBlocked: boolean | null;\n autoAnnotate: boolean;\n managementSoftware: boolean | null;\n cashbook: boolean | null;\n balanceZero: boolean | null;\n mailRecovery: boolean | null;\n folderIsFinished: boolean | null;\n hideInformationsBanner: boolean | null;\n dateUploadTva: Date | null;\n vatUploadDay: number | null;\n lockImposition: boolean | null;\n lockTva: boolean | null;\n isWaitingEnd: boolean | null;\n waitFirstContact: boolean | null;\n sendFirstContact: boolean | null;\n toConstitution: number | null;\n passwordIsuite: string | null;\n numberFrp: string | null;\n socialParts: string | null;\n numberSie: string | null;\n aga: string | null;\n statutoryAuditor: string | null;\n typeSales: string | null;\n dateRelanceCommercial: Date | null;\n firstPayslipDate: Date | null;\n totalSharesHeld: number | null;\n idVatRegime: number | null;\n idTaxSystem: number | null;\n idActivity: number | null;\n profitsType: number | null;\n idSource: number | null;\n idFiscalRegime: number | null;\n idRegion: number | null;\n idLegalForm: number | null;\n idComptaType: ComptaType | null;\n idTypeBrand: number | null;\n idSubscriptionType: number | null;\n idCountry: Country | null;\n idSector: Sector | null;\n idSocietyNotes: number | null;\n folderNote: string | null;\n oldNafCode: string | null;\n dateSendAdvise: Date | null;\n idUserAdvise: number | null;\n idVatForInternalInvoicing: number;\n dateFirstSendUnpaid: Date | null;\n reasonUnpaid: number | null;\n stripeSubscriptionId: string | null;\n stateSynchroBankAccount: number | null;\n noShowPopUpSynchroDate: Date | null;\n stateFollowCall: number | null;\n hideSimulationBetaMessage: boolean;\n unpaid: number | null;\n isLate: boolean | null;\n unpaidDetails: UnpaidDetail[] | null;\n owner: string | null;\n social: string | null;\n exercices: string | null;\n recoveryDate: string | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n startAt?: Date | null;\n idSoftware: number | null;\n canceledFirstStepAt: Date | null;\n completedFirstStepAt: Date | null;\n lastMobileConnection: Date | null;\n idNafCode: number | null;\n canceledFirstStepTourAt: Date | null;\n step: string | null;\n hidePartneredAccountantsBubbleLink: boolean | null;\n cancelCompleteCreationModal: Date | null;\n isCreatedInApp: boolean;\n\n // Associations\n accounts?: IAccount[];\n comments?: IComment[];\n thirdParty?: IThirdParty[];\n reports?: IReport[];\n connectors?: IConnector[];\n bankConnections?: IBankConnection[];\n societiesFollowedQualityMail?: IFollowedQualityMail[];\n societyFollow?: IFollow[];\n paymentsExpectations?: IPaymentExpectation[];\n legalForm?: ILegalForm;\n oldExpertInfo?: IOldExpertInfo;\n prestationsSocieties?: IPrestation[];\n sector?: ISector;\n refunds?: IRefund[];\n bankAccounts?: IBankAccount[];\n bankPayment?: ISocietyBank;\n compta?: IComptaType;\n typeSubscription?: ISubscriptionType;\n config?: ISocietyConfig;\n gescom?: ISocietyGescom;\n societyCgv?: ISocietyCgv;\n formalism?: IFormalism;\n notes?: ISocietyNote;\n taxSystem?: ITaxSystem;\n tvaRegime?: IVatRegime;\n fiscalRegime?: IFiscalRegime;\n source?: ISource;\n nafCode?: INafCode;\n analyticsUtm?: IAnalyticsUtm;\n activity?: IActivity;\n softwareCompta?: ISoftwareCompta;\n accessToken?: IAccessToken;\n cotations?: ICotation[];\n societyVehicles?: ISocietyVehicle[];\n societyCountry?: ICountry;\n terminationsList?: ITerminationList;\n societyFiles?: ISocietyFile[];\n societyDetail?: ISocietyDetail;\n societySocials?: ISocietySocial[];\n societyJuridical?: ISocietyJuridical;\n paymentWaitings?: IPaymentWaiting[];\n societyExercices?: IExercice[];\n webmailMails?: IWebMail[];\n societyProcedings?: ISocietyProceding[];\n societyStats?: ISocietyStat[];\n survey?: ISurvey[];\n logs?: ILog[];\n sms?: ISms[];\n users?: IUser[];\n brandType?: IBrandType;\n partneredAccountantCompaniesServices: IPartneredAccountantCompanyService[];\n partneredAccountantRelated: IPartneredAccountantToSociety;\n events: ISocietyEvent[];\n mails: IMail[];\n}\n"]}
@@ -9,15 +9,15 @@ var _Resource = require("../Resource");
9
9
 
10
10
  class NotificationSetting extends _Resource.Resource {
11
11
  getAllByUser(idUser) {
12
- return this.axios.$get(`notifications/settins/${idUser}`);
12
+ return this.axios.$get(`users/${idUser}/notifications/settings`);
13
13
  }
14
14
 
15
15
  create(idUser, body) {
16
- return this.axios.$post(`notifications/settings/${idUser}/create`, body);
16
+ return this.axios.$post(`users/${idUser}/notifications/settings/create`, body);
17
17
  }
18
18
 
19
19
  update(idUser, body) {
20
- return this.axios.$put(`notifications/settings/${idUser}`, body);
20
+ return this.axios.$put(`users/${idUser}/notifications/settings`, body);
21
21
  }
22
22
 
23
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationSetting.js","mappings":";;;;;;;AACA;;AAEM,MAAOA,mBAAP,SAAmCC,kBAAnC,CAA2C;EAC/CC,YAAY,CAACC,MAAD,EAAe;IACzB,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,yBAAyBF,MAAM,EAA/C,CAAP;EACD;;EACDG,MAAM,CAACH,MAAD,EAAiBI,IAAjB,EAAkD;IACtD,OAAO,KAAKH,KAAL,CAAWI,KAAX,CAAiB,0BAA0BL,MAAM,SAAjD,EAA4DI,IAA5D,CAAP;EACD;;EAEDE,MAAM,CAACN,MAAD,EAAiBI,IAAjB,EAAgD;IACpD,OAAO,KAAKH,KAAL,CAAWM,IAAX,CAAgB,0BAA0BP,MAAM,EAAhD,EAAoDI,IAApD,CAAP;EACD;;AAV8C;;QAApCP,mB,GAAAA,mB","names":["NotificationSetting","Resource","getAllByUser","idUser","axios","$get","create","body","$post","update","$put"],"sourceRoot":"","sources":["../../../ts/api/resources/NotificationSetting.ts"],"sourcesContent":["import { CreateNotificationSetting, IMobileNotificationSetting, UpdateNotificationSetting } from '../../types';\nimport { Resource } from '../Resource';\n\nexport class NotificationSetting extends Resource {\n getAllByUser(idUser: number): Promise<IMobileNotificationSetting[]> {\n return this.axios.$get(`notifications/settins/${idUser}`);\n }\n create(idUser: number, body: CreateNotificationSetting[]): Promise<IMobileNotificationSetting[]> {\n return this.axios.$post(`notifications/settings/${idUser}/create`, body);\n }\n\n update(idUser: number, body: UpdateNotificationSetting): Promise<IMobileNotificationSetting> {\n return this.axios.$put(`notifications/settings/${idUser}`, body);\n }\n}"]}
1
+ {"version":3,"file":"NotificationSetting.js","mappings":";;;;;;;AACA;;AAEM,MAAOA,mBAAP,SAAmCC,kBAAnC,CAA2C;EAC/CC,YAAY,CAACC,MAAD,EAAe;IACzB,OAAO,KAAKC,KAAL,CAAWC,IAAX,CAAgB,SAASF,MAAM,yBAA/B,CAAP;EACD;;EACDG,MAAM,CAACH,MAAD,EAAiBI,IAAjB,EAAkD;IACtD,OAAO,KAAKH,KAAL,CAAWI,KAAX,CAAiB,SAASL,MAAM,gCAAhC,EAAkEI,IAAlE,CAAP;EACD;;EAEDE,MAAM,CAACN,MAAD,EAAiBI,IAAjB,EAAgD;IACpD,OAAO,KAAKH,KAAL,CAAWM,IAAX,CAAgB,SAASP,MAAM,yBAA/B,EAA0DI,IAA1D,CAAP;EACD;;AAV8C;;QAApCP,mB,GAAAA,mB","names":["NotificationSetting","Resource","getAllByUser","idUser","axios","$get","create","body","$post","update","$put"],"sourceRoot":"","sources":["../../../ts/api/resources/NotificationSetting.ts"],"sourcesContent":["import { CreateNotificationSetting, IMobileNotificationSetting, UpdateNotificationSetting } from '../../types';\nimport { Resource } from '../Resource';\n\nexport class NotificationSetting extends Resource {\n getAllByUser(idUser: number): Promise<IMobileNotificationSetting[]> {\n return this.axios.$get(`users/${idUser}/notifications/settings`);\n }\n create(idUser: number, body: CreateNotificationSetting[]): Promise<IMobileNotificationSetting[]> {\n return this.axios.$post(`users/${idUser}/notifications/settings/create`, body);\n }\n\n update(idUser: number, body: UpdateNotificationSetting): Promise<IMobileNotificationSetting> {\n return this.axios.$put(`users/${idUser}/notifications/settings`, body);\n }\n}"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "0.4.220",
3
+ "version": "0.4.224",
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": "js/index.js",
@@ -3,13 +3,13 @@ import { Resource } from '../Resource';
3
3
 
4
4
  export class NotificationSetting extends Resource {
5
5
  getAllByUser(idUser: number): Promise<IMobileNotificationSetting[]> {
6
- return this.axios.$get(`notifications/settins/${idUser}`);
6
+ return this.axios.$get(`users/${idUser}/notifications/settings`);
7
7
  }
8
8
  create(idUser: number, body: CreateNotificationSetting[]): Promise<IMobileNotificationSetting[]> {
9
- return this.axios.$post(`notifications/settings/${idUser}/create`, body);
9
+ return this.axios.$post(`users/${idUser}/notifications/settings/create`, body);
10
10
  }
11
11
 
12
12
  update(idUser: number, body: UpdateNotificationSetting): Promise<IMobileNotificationSetting> {
13
- return this.axios.$put(`notifications/settings/${idUser}`, body);
13
+ return this.axios.$put(`users/${idUser}/notifications/settings`, body);
14
14
  }
15
15
  }
@@ -81,7 +81,7 @@ export interface ISociety {
81
81
  cashbook: boolean | null;
82
82
  balanceZero: boolean | null;
83
83
  mailRecovery: boolean | null;
84
- FolderIsFinished: boolean | null;
84
+ folderIsFinished: boolean | null;
85
85
  hideInformationsBanner: boolean | null;
86
86
  dateUploadTva: Date | null;
87
87
  vatUploadDay: number | null;