@silexpert/core 1.3.98 → 1.3.99-2

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 (64) hide show
  1. package/dist/cjs/api/resources/Qonto.d.ts +1 -11
  2. package/dist/cjs/api/resources/Qonto.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Qonto.js +0 -29
  4. package/dist/cjs/api/resources/Qonto.js.map +1 -1
  5. package/dist/cjs/api/resources/Sellsy.d.ts +19 -0
  6. package/dist/cjs/api/resources/Sellsy.d.ts.map +1 -0
  7. package/dist/cjs/api/resources/Sellsy.js +20 -0
  8. package/dist/cjs/api/resources/Sellsy.js.map +1 -0
  9. package/dist/cjs/types/Form/FormConnector.d.ts +1 -0
  10. package/dist/cjs/types/Form/FormConnector.d.ts.map +1 -1
  11. package/dist/cjs/types/Form/FormConnector.js +85 -0
  12. package/dist/cjs/types/Form/FormConnector.js.map +1 -1
  13. package/dist/cjs/types/Interface/api/connector/OAuthTokenRequest.d.ts +12 -0
  14. package/dist/cjs/types/Interface/api/connector/OAuthTokenRequest.d.ts.map +1 -0
  15. package/dist/cjs/types/Interface/api/connector/OAuthTokenRequest.js +3 -0
  16. package/dist/cjs/types/Interface/api/connector/OAuthTokenRequest.js.map +1 -0
  17. package/dist/cjs/types/Interface/api/qonto/Create.d.ts +0 -34
  18. package/dist/cjs/types/Interface/api/qonto/Create.d.ts.map +1 -1
  19. package/dist/cjs/types/Interface/api/qonto/Create.js +1 -155
  20. package/dist/cjs/types/Interface/api/qonto/Create.js.map +1 -1
  21. package/dist/cjs/types/Interface/api/qonto/Query.d.ts +0 -44
  22. package/dist/cjs/types/Interface/api/qonto/Query.d.ts.map +1 -1
  23. package/dist/cjs/types/Interface/api/qonto/Query.js +1 -4
  24. package/dist/cjs/types/Interface/api/qonto/Query.js.map +1 -1
  25. package/dist/cjs/types/Interface/api/sellsy/SellsyConnectionStatus.d.ts +11 -0
  26. package/dist/cjs/types/Interface/api/sellsy/SellsyConnectionStatus.d.ts.map +1 -0
  27. package/dist/cjs/types/Interface/api/sellsy/SellsyConnectionStatus.js +3 -0
  28. package/dist/cjs/types/Interface/api/sellsy/SellsyConnectionStatus.js.map +1 -0
  29. package/dist/mjs/api/resources/Qonto.d.ts +1 -11
  30. package/dist/mjs/api/resources/Qonto.d.ts.map +1 -1
  31. package/dist/mjs/api/resources/Qonto.js +0 -29
  32. package/dist/mjs/api/resources/Qonto.js.map +1 -1
  33. package/dist/mjs/api/resources/Sellsy.d.ts +19 -0
  34. package/dist/mjs/api/resources/Sellsy.d.ts.map +1 -0
  35. package/dist/mjs/api/resources/Sellsy.js +16 -0
  36. package/dist/mjs/api/resources/Sellsy.js.map +1 -0
  37. package/dist/mjs/types/Form/FormConnector.d.ts +1 -0
  38. package/dist/mjs/types/Form/FormConnector.d.ts.map +1 -1
  39. package/dist/mjs/types/Form/FormConnector.js +86 -11
  40. package/dist/mjs/types/Form/FormConnector.js.map +1 -1
  41. package/dist/mjs/types/Interface/api/connector/OAuthTokenRequest.d.ts +12 -0
  42. package/dist/mjs/types/Interface/api/connector/OAuthTokenRequest.d.ts.map +1 -0
  43. package/dist/mjs/types/Interface/api/connector/OAuthTokenRequest.js +2 -0
  44. package/dist/mjs/types/Interface/api/connector/OAuthTokenRequest.js.map +1 -0
  45. package/dist/mjs/types/Interface/api/qonto/Create.d.ts +0 -34
  46. package/dist/mjs/types/Interface/api/qonto/Create.d.ts.map +1 -1
  47. package/dist/mjs/types/Interface/api/qonto/Create.js +1 -178
  48. package/dist/mjs/types/Interface/api/qonto/Create.js.map +1 -1
  49. package/dist/mjs/types/Interface/api/qonto/Query.d.ts +0 -44
  50. package/dist/mjs/types/Interface/api/qonto/Query.d.ts.map +1 -1
  51. package/dist/mjs/types/Interface/api/qonto/Query.js +0 -9
  52. package/dist/mjs/types/Interface/api/qonto/Query.js.map +1 -1
  53. package/dist/mjs/types/Interface/api/sellsy/SellsyConnectionStatus.d.ts +11 -0
  54. package/dist/mjs/types/Interface/api/sellsy/SellsyConnectionStatus.d.ts.map +1 -0
  55. package/dist/mjs/types/Interface/api/sellsy/SellsyConnectionStatus.js +2 -0
  56. package/dist/mjs/types/Interface/api/sellsy/SellsyConnectionStatus.js.map +1 -0
  57. package/package.json +1 -1
  58. package/ts/api/resources/Qonto.ts +0 -43
  59. package/ts/api/resources/Sellsy.ts +24 -0
  60. package/ts/types/Form/FormConnector.ts +41 -11
  61. package/ts/types/Interface/api/connector/OAuthTokenRequest.ts +12 -0
  62. package/ts/types/Interface/api/qonto/Create.ts +1 -128
  63. package/ts/types/Interface/api/qonto/Query.ts +0 -64
  64. package/ts/types/Interface/api/sellsy/SellsyConnectionStatus.ts +10 -0
@@ -74,32 +74,6 @@ export type GetQontoAttachment = {
74
74
  url: string | null;
75
75
  };
76
76
  };
77
- export type ReadQontoRegistration = {
78
- id: string;
79
- legal_flow: string;
80
- flow: {
81
- type: 'manual' | 'seamless';
82
- breakdown: {
83
- code: string;
84
- detail: string;
85
- source: {
86
- pointer: string;
87
- };
88
- } | null;
89
- };
90
- status: 'created' | 'pending' | 'user_started' | 'price_plan_selected' | 'contract_signed' | 'submitted' | 'capital_deposit_activated' | 'capital_deposit_request_signed' | 'capital_deposit_certificate_signed' | 'completed';
91
- redirection_link: string;
92
- created_at: string;
93
- updated_at: string;
94
- locale: string;
95
- partner_user: {
96
- first_name: string | null;
97
- last_name: string | null;
98
- email: string | null;
99
- };
100
- organization: ReadOrganization;
101
- stakeholders: ReadStakeHolder[];
102
- };
103
77
  export type ReadOrganization = {
104
78
  id?: string;
105
79
  entity_type: 'freelancer' | 'company';
@@ -149,22 +123,4 @@ export declare class ReadStakeHolder {
149
123
  shareholding_type: 'physical' | null;
150
124
  }
151
125
  export type ReadStakeHolders = ReadStakeHolder[];
152
- export declare class ReadQontoRegistrationFile {
153
- id: string;
154
- filename: string;
155
- filesize_bytes: number;
156
- url: string;
157
- created_at: string;
158
- file_type: string;
159
- stakeholder_id: string | null;
160
- }
161
- export type ReadQontoWebhookConfig = {
162
- id: string;
163
- created_at: string;
164
- updated_at: string;
165
- callback_url: string;
166
- enabled: boolean;
167
- secret: string;
168
- };
169
- export type RegistrationFileType = 'organization-deposit-certificate' | 'organization-proof-of-address' | 'organization-by-laws' | 'organization-kbis' | 'stakeholder-proof-of-identity' | 'stakeholder-residence-permit';
170
126
  //# sourceMappingURL=Query.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/qonto/Query.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,wBAAwB,EAAE,MAAM,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,YAAY,EAAE;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAC1B,aAAa,EAAE,4BAA4B,EAAE,CAAC;KAC/C,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,YAAY,EAAE,gBAAgB,EAAE,CAAC;IACjC,IAAI,EAAE;QACJ,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QACzB,WAAW,EAAE,MAAM,CAAC;QACpB,WAAW,EAAE,MAAM,CAAC;QACpB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH,CAAC;A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;KACxB,CAAC;IACF,iBAAiB,EAAE;QACjB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QACtB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAC3B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QACpB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;KACxB,CAAC;IACF,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;CACtC;AAED,MAAM,MAAM,gBAAgB,GAAG,eAAe,EAAE,CAAC;AAEjD,qBAAa,yBAAyB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAC5B,kCAAkC,GAClC,+BAA+B,GAC/B,sBAAsB,GACtB,mBAAmB,GACnB,+BAA+B,GAC/B,8BAA8B,CAAC"}
1
+ {"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/qonto/Query.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,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AE,MAAM,GAAG,IAAI,CAAC;KACxB,CAAC;IACF,iBAAiB,EAAE,UAAU,GAAG,IAAI,CAAC;CACtC;AAED,MAAM,MAAM,gBAAgB,GAAG,eAAe,EAAE,CAAC"}
@@ -13,13 +13,4 @@ export class ReadStakeHolder {
13
13
  residence_address;
14
14
  shareholding_type;
15
15
  }
16
- export class ReadQontoRegistrationFile {
17
- id;
18
- filename;
19
- filesize_bytes;
20
- url; // TTL of 2 hours
21
- created_at;
22
- file_type;
23
- stakeholder_id;
24
- }
25
16
  //# sourceMappingURL=Query.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/qonto/Query.ts"],"names":[],"mappings":"AA4IA,MAAM,OAAO,eAAe;IAC1B,EAAE,CAAU;IACZ,cAAc,CAGZ;IACF,QAAQ,CAAiB;IACzB,UAAU,CAAgB;IAC1B,SAAS,CAAgB;IACzB,KAAK,CAAgB;IACrB,MAAM,CAAqC;IAC3C,YAAY,CAAgB;IAC5B,WAAW,CAAgB,CAAC,mBAAmB;IAC/C,UAAU,CAAgB;IAC1B,aAAa,CAIX;IACF,iBAAiB,CAKf;IACF,iBAAiB,CAAoB;CACtC;AAID,MAAM,OAAO,yBAAyB;IACpC,EAAE,CAAS;IACX,QAAQ,CAAS;IACjB,cAAc,CAAS;IACvB,GAAG,CAAS,CAAC,iBAAiB;IAC9B,UAAU,CAAS;IACnB,SAAS,CAAS;IAClB,cAAc,CAAgB;CAC/B","sourcesContent":["export type QontoOrganisationBankAccount = {\n slug: string;\n iban: string;\n bic: string | null;\n currency: string;\n balance: number;\n balance_cents: number;\n authorized_balance: number;\n authorized_balance_cents: number;\n updated_at: string;\n status: 'active' | 'closed';\n};\n\nexport type GetQontoOrganization = {\n organization: {\n slug: string;\n legal_name: string | null;\n bank_accounts: QontoOrganisationBankAccount[];\n };\n};\n\nexport type GetQontoTransactionsResponse = {\n transactions: QontoTransaction[];\n meta: {\n current_page: number;\n next_page: number | null;\n prev_page: number | null;\n total_pages: number;\n total_count: number;\n per_page: number;\n };\n};\n\nexport type QontoTransaction = {\n transaction_id: string;\n amount: number;\n amount_cents: number;\n settled_balance: number;\n settled_balance_cents: number;\n attachment_ids: string[];\n local_amount: number;\n local_amount_cents: number;\n side: string;\n operation_type: string;\n currency: string;\n local_currency: string;\n label: string;\n settled_at: string;\n emitted_at: string;\n updated_at: string;\n status: string;\n note: string;\n reference: string | null;\n vat_amount: number | null;\n vat_amount_cents: number | null;\n vat_rate: number | null;\n initiator_id: string | null;\n label_ids: string[];\n attachment_lost: boolean;\n attachment_required: boolean;\n card_last_digits: string | null;\n category: string | null;\n id: string | null;\n};\n\nexport type GetQontoAttachment = {\n id: string;\n created_at: string;\n file_name: string;\n file_size: string;\n file_content_type: string;\n url: string;\n probative_attachment: {\n status: string;\n file_name: string;\n file_content_type: string;\n file_size: string;\n url: string | null;\n };\n};\n\nexport type ReadQontoRegistration = {\n id: string;\n legal_flow: string; // Registration type => company_creation (Company in creation), existing_company (Company already exists)\n flow: {\n type: 'manual' | 'seamless'; // which type of flow the user will be redirected\n breakdown: {\n code: string;\n detail: string;\n source: {\n pointer: string;\n };\n } | null;\n };\n status:\n | 'created'\n | 'pending'\n | 'user_started'\n | 'price_plan_selected'\n | 'contract_signed'\n | 'submitted'\n | 'capital_deposit_activated'\n | 'capital_deposit_request_signed'\n | 'capital_deposit_certificate_signed'\n | 'completed';\n redirection_link: string; // link where the user is redirected\n created_at: string;\n updated_at: string;\n locale: string;\n partner_user: {\n first_name: string | null;\n last_name: string | null;\n email: string | null;\n };\n organization: ReadOrganization;\n stakeholders: ReadStakeHolder[];\n};\n\nexport type ReadOrganization = {\n id?: string;\n entity_type: 'freelancer' | 'company';\n legal_name: string | null;\n legal_form: string | null;\n legal_number?: string | null;\n legal_sector?: string | null;\n legal_registration_date?: string | null;\n legal_vat_number?: string | null;\n address: {\n line_1: string | null;\n line_2?: string | null;\n postal_code: string | null;\n city: string | null;\n country: string | null;\n };\n total_capital_amount: {\n value: string;\n currency: 'EUR';\n };\n};\n\nexport class ReadStakeHolder {\n id?: string;\n capital_amount: {\n value: string;\n currency: 'EUR';\n };\n is_owner: boolean | null;\n first_name: string | null;\n last_name: string | null;\n email: string | null;\n gender: 'male' | 'female' | 'other' | null;\n phone_number: string | null;\n nationality: string | null; // ISO country code\n birth_date: string | null;\n birth_address: {\n postal_code: string | null;\n city: string | null;\n country: string | null;\n };\n residence_address: {\n line_1: string | null;\n postal_code: string | null;\n city: string | null;\n country: string | null;\n };\n shareholding_type: 'physical' | null;\n}\n\nexport type ReadStakeHolders = ReadStakeHolder[];\n\nexport class ReadQontoRegistrationFile {\n id: string;\n filename: string;\n filesize_bytes: number;\n url: string; // TTL of 2 hours\n created_at: string;\n file_type: string;\n stakeholder_id: string | null;\n}\n\nexport type ReadQontoWebhookConfig = {\n id: string;\n created_at: string;\n updated_at: string;\n callback_url: string;\n enabled: boolean;\n secret: string;\n};\n\nexport type RegistrationFileType =\n | 'organization-deposit-certificate'\n | 'organization-proof-of-address'\n | 'organization-by-laws'\n | 'organization-kbis'\n | 'stakeholder-proof-of-identity'\n | 'stakeholder-residence-permit';\n"]}
1
+ {"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/qonto/Query.ts"],"names":[],"mappings":"AAuGA,MAAM,OAAO,eAAe;IAC1B,EAAE,CAAU;IACZ,cAAc,CAGZ;IACF,QAAQ,CAAiB;IACzB,UAAU,CAAgB;IAC1B,SAAS,CAAgB;IACzB,KAAK,CAAgB;IACrB,MAAM,CAAqC;IAC3C,YAAY,CAAgB;IAC5B,WAAW,CAAgB,CAAC,mBAAmB;IAC/C,UAAU,CAAgB;IAC1B,aAAa,CAIX;IACF,iBAAiB,CAKf;IACF,iBAAiB,CAAoB;CACtC","sourcesContent":["export type QontoOrganisationBankAccount = {\n slug: string;\n iban: string;\n bic: string | null;\n currency: string;\n balance: number;\n balance_cents: number;\n authorized_balance: number;\n authorized_balance_cents: number;\n updated_at: string;\n status: 'active' | 'closed';\n};\n\nexport type GetQontoOrganization = {\n organization: {\n slug: string;\n legal_name: string | null;\n bank_accounts: QontoOrganisationBankAccount[];\n };\n};\n\nexport type GetQontoTransactionsResponse = {\n transactions: QontoTransaction[];\n meta: {\n current_page: number;\n next_page: number | null;\n prev_page: number | null;\n total_pages: number;\n total_count: number;\n per_page: number;\n };\n};\n\nexport type QontoTransaction = {\n transaction_id: string;\n amount: number;\n amount_cents: number;\n settled_balance: number;\n settled_balance_cents: number;\n attachment_ids: string[];\n local_amount: number;\n local_amount_cents: number;\n side: string;\n operation_type: string;\n currency: string;\n local_currency: string;\n label: string;\n settled_at: string;\n emitted_at: string;\n updated_at: string;\n status: string;\n note: string;\n reference: string | null;\n vat_amount: number | null;\n vat_amount_cents: number | null;\n vat_rate: number | null;\n initiator_id: string | null;\n label_ids: string[];\n attachment_lost: boolean;\n attachment_required: boolean;\n card_last_digits: string | null;\n category: string | null;\n id: string | null;\n};\n\nexport type GetQontoAttachment = {\n id: string;\n created_at: string;\n file_name: string;\n file_size: string;\n file_content_type: string;\n url: string;\n probative_attachment: {\n status: string;\n file_name: string;\n file_content_type: string;\n file_size: string;\n url: string | null;\n };\n};\n\nexport type ReadOrganization = {\n id?: string;\n entity_type: 'freelancer' | 'company';\n legal_name: string | null;\n legal_form: string | null;\n legal_number?: string | null;\n legal_sector?: string | null;\n legal_registration_date?: string | null;\n legal_vat_number?: string | null;\n address: {\n line_1: string | null;\n line_2?: string | null;\n postal_code: string | null;\n city: string | null;\n country: string | null;\n };\n total_capital_amount: {\n value: string;\n currency: 'EUR';\n };\n};\n\nexport class ReadStakeHolder {\n id?: string;\n capital_amount: {\n value: string;\n currency: 'EUR';\n };\n is_owner: boolean | null;\n first_name: string | null;\n last_name: string | null;\n email: string | null;\n gender: 'male' | 'female' | 'other' | null;\n phone_number: string | null;\n nationality: string | null; // ISO country code\n birth_date: string | null;\n birth_address: {\n postal_code: string | null;\n city: string | null;\n country: string | null;\n };\n residence_address: {\n line_1: string | null;\n postal_code: string | null;\n city: string | null;\n country: string | null;\n };\n shareholding_type: 'physical' | null;\n}\n\nexport type ReadStakeHolders = ReadStakeHolder[];\n"]}
@@ -0,0 +1,11 @@
1
+ export interface SellsyConnectionStatus {
2
+ connected: boolean;
3
+ refreshed?: boolean;
4
+ needReauth?: boolean;
5
+ lastSync?: Date | string;
6
+ expiresAt?: Date;
7
+ expiresIn?: number;
8
+ message?: string;
9
+ error?: string;
10
+ }
11
+ //# sourceMappingURL=SellsyConnectionStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SellsyConnectionStatus.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/sellsy/SellsyConnectionStatus.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=SellsyConnectionStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SellsyConnectionStatus.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/sellsy/SellsyConnectionStatus.ts"],"names":[],"mappings":"","sourcesContent":["export interface SellsyConnectionStatus {\n connected: boolean;\n refreshed?: boolean;\n needReauth?: boolean;\n lastSync?: Date | string;\n expiresAt?: Date;\n expiresIn?: number;\n message?: string;\n error?: string;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.3.98",
3
+ "version": "1.3.99-2",
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",
@@ -5,15 +5,8 @@ import {
5
5
  GetConnectionInformation,
6
6
  GetQontoOrganization,
7
7
  IBankAccount,
8
- IBankConnection,
9
8
  ReadCreateConnection,
10
- UpdateConnection,
11
9
  CreateImportationResult,
12
- CreateQontoRegistration,
13
- ReadQontoRegistration,
14
- CreateRegistrationFile,
15
- CreateWebhookConfig,
16
- ReadQontoWebhookConfig,
17
10
  } from '../../types';
18
11
  import { Resource } from '../Resource';
19
12
 
@@ -37,40 +30,4 @@ export class Qonto extends Resource {
37
30
  create(payload: CreateQontoConnection): Promise<ReadCreateConnection> {
38
31
  return this.axios.$post('connectors/qonto/connections', payload);
39
32
  }
40
-
41
- /**
42
- * @deprecated use create
43
- */
44
- updateConnection(idBankConnection: number, payload: UpdateConnection): Promise<IBankConnection> {
45
- return this.axios.$put(`connectors/qonto/connections/${idBankConnection}`, payload);
46
- }
47
-
48
- createRegistration(params: CreateQontoRegistration): Promise<ReadQontoRegistration> {
49
- return this.axios.$post('connectors/qonto/registrations', params);
50
- }
51
-
52
- getRegistration(idRegistration: string): Promise<ReadQontoRegistration> {
53
- return this.axios.$post(`connectors/qonto/registrations/${idRegistration}`);
54
- }
55
-
56
- createRegistrationFile(idRegistration: string, params: CreateRegistrationFile): Promise<ReadQontoRegistration> {
57
- return this.axios.$post(`connectors/qonto/registrations/${idRegistration}/files`, params, {
58
- responseType: 'arraybuffer',
59
- headers: {
60
- Accept: 'application/pdf',
61
- },
62
- });
63
- }
64
-
65
- getRegistrationFileBuffer(idRegistration: string, idFile: string): Promise<Buffer> {
66
- return this.axios.$get(`connectors/qonto/registrations/${idRegistration}/files/${idFile}/download`);
67
- }
68
-
69
- createWebhookConfig(params: CreateWebhookConfig): Promise<ReadQontoWebhookConfig> {
70
- return this.axios.$post('connectors/qonto/registrations/webhooks-configs', params);
71
- }
72
-
73
- triggerNewMailForRegistrationLink(idRegistration: string): Promise<void> {
74
- return this.axios.$post(`connectors/qonto/registrations/${idRegistration}/email`);
75
- }
76
33
  }
@@ -0,0 +1,24 @@
1
+ import { Resource } from '../Resource';
2
+ import { SellsyConnectionStatus } from '../../types/Interface/api/sellsy/SellsyConnectionStatus';
3
+
4
+ export class Sellsy extends Resource {
5
+ oauthCallback(payload: {
6
+ code: string;
7
+ codeVerifier: string;
8
+ idSociety: number;
9
+ }): Promise<{ success: boolean; message: string }> {
10
+ return this.axios.$post('/auth/sellsy/callback', payload);
11
+ }
12
+
13
+ disconnect(idSociety: number): Promise<{ success: boolean; message: string }> {
14
+ return this.axios.$post('/auth/sellsy/disconnect', { idSociety });
15
+ }
16
+
17
+ getConnectionStatus(societyId: number): Promise<SellsyConnectionStatus> {
18
+ return this.axios.$get('/auth/sellsy/status', { params: { societyId } });
19
+ }
20
+
21
+ createInvoices(payload: any): Promise<any> {
22
+ return this.axios.$post('/connectors/sellsy/invoices', payload);
23
+ }
24
+ }
@@ -1,36 +1,66 @@
1
+ import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
2
+ import { IsString, IsOptional, IsNumber, IsDate, IsEnum } from 'class-validator';
3
+ import { Type } from 'class-transformer';
1
4
  import { ConnectorType } from '../Enum/ConnectorType';
2
5
 
3
6
  export class FormConnector {
4
- // @ApiProperty()
7
+ @ApiPropertyOptional()
8
+ @IsOptional()
9
+ @IsNumber()
5
10
  id?: number;
6
11
 
7
- // @ApiProperty()
12
+ @ApiPropertyOptional()
13
+ @IsOptional()
14
+ @IsString()
8
15
  username?: string;
9
16
 
10
- // @ApiProperty()
17
+ @ApiPropertyOptional()
18
+ @IsOptional()
19
+ @IsString()
11
20
  pass?: string;
12
21
 
13
- // @ApiProperty()
22
+ @ApiPropertyOptional()
23
+ @IsOptional()
24
+ @IsString()
14
25
  url?: string;
15
26
 
16
- // @ApiProperty()
27
+ @ApiPropertyOptional()
28
+ @IsOptional()
29
+ @IsString()
17
30
  token?: string;
18
31
 
19
- // @ApiProperty()
32
+ @ApiPropertyOptional()
33
+ @IsOptional()
34
+ @IsString()
20
35
  token2?: string;
21
36
 
22
- // @ApiProperty()
37
+ @ApiPropertyOptional()
38
+ @IsOptional()
39
+ @IsString()
23
40
  token3?: string;
24
41
 
25
- // @ApiProperty()
42
+ @ApiPropertyOptional()
43
+ @IsOptional()
44
+ @IsString()
26
45
  token4?: string;
27
46
 
28
- // @ApiProperty()
47
+ @ApiPropertyOptional({ type: String, format: 'date-time' })
48
+ @IsOptional()
49
+ @IsDate()
50
+ @Type(() => Date)
29
51
  date?: Date;
30
52
 
31
- // @ApiProperty()
53
+ @ApiProperty({ enum: ConnectorType })
54
+ @IsEnum(ConnectorType)
32
55
  idTypeConnector: ConnectorType;
33
56
 
34
- // @ApiProperty()
57
+ @ApiPropertyOptional()
58
+ @IsOptional()
59
+ @IsNumber()
35
60
  idSociety?: number;
61
+
62
+ @ApiPropertyOptional()
63
+ @IsOptional()
64
+ @IsNumber()
65
+ expiresIn?: number;
36
66
  }
@@ -0,0 +1,12 @@
1
+ export interface OAuthTokenRequest {
2
+ clientId: string;
3
+ redirectUri: string;
4
+ codeVerifier: string;
5
+ code: string;
6
+ }
7
+
8
+ export interface SellsyTokenResponse {
9
+ access_token: string;
10
+ refresh_token: string;
11
+ expires_in: number;
12
+ }
@@ -1,8 +1,5 @@
1
- import { IsDateString, IsOptional, IsString, IsArray, IsBoolean, IsNumber } from 'class-validator';
1
+ import { IsDateString, IsOptional, IsString, IsArray } from 'class-validator';
2
2
  import { ApiPropertyOptional, ApiProperty } from '../../../../utils';
3
- import { RegistrationFileType, ReadStakeHolders } from './Query';
4
- import { TFile } from '../file/TFile';
5
- import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
6
3
 
7
4
  export class CreateImportation {
8
5
  @ApiPropertyOptional()
@@ -35,127 +32,3 @@ export class ProcessBankAccount {
35
32
  @IsArray()
36
33
  idsSlugToRemove: Array<string>;
37
34
  }
38
-
39
- export class CreateQontoRegistration {
40
- @ApiProperty()
41
- @IsString()
42
- legalFlow: 'company_creation' | 'existing_company';
43
-
44
- @ApiProperty()
45
- @IsString()
46
- locale: 'en' | 'fr' | 'it' | 'es' | 'de';
47
-
48
- @ApiPropertyOptional()
49
- @IsString()
50
- @IsOptional()
51
- firstName?: string | null;
52
-
53
- @ApiPropertyOptional()
54
- @IsString()
55
- @IsOptional()
56
- lastName?: string | null;
57
-
58
- @ApiPropertyOptional()
59
- @IsString()
60
- @IsOptional()
61
- email?: string | null;
62
-
63
- @ApiProperty()
64
- @IsString()
65
- entityType: 'freelancer' | 'company';
66
-
67
- @ApiPropertyOptional()
68
- @IsString()
69
- @IsOptional()
70
- legalName?: string | null;
71
-
72
- @ApiPropertyOptional()
73
- @IsString()
74
- @IsOptional()
75
- legalForm?: string | null;
76
-
77
- @ApiPropertyOptional()
78
- @IsString()
79
- @IsOptional()
80
- number?: string | null;
81
-
82
- @ApiPropertyOptional()
83
- @IsString()
84
- @IsOptional()
85
- sector?: string | null;
86
-
87
- @ApiPropertyOptional()
88
- @IsString()
89
- @IsOptional()
90
- registrationDate?: string | null;
91
-
92
- @ApiPropertyOptional()
93
- @IsString()
94
- @IsOptional()
95
- vatNumber?: string | null;
96
-
97
- @ApiPropertyOptional()
98
- @IsString()
99
- @IsOptional()
100
- addressStreet?: string | null;
101
-
102
- @ApiPropertyOptional()
103
- @IsString()
104
- @IsOptional()
105
- addressStreet2?: string | null;
106
-
107
- @ApiPropertyOptional()
108
- @IsString()
109
- @IsOptional()
110
- postalCode?: string | null;
111
-
112
- @ApiPropertyOptional()
113
- @IsString()
114
- @IsOptional()
115
- city?: string | null;
116
-
117
- @ApiPropertyOptional()
118
- @IsString()
119
- @IsOptional()
120
- country?: string | null;
121
-
122
- @ApiProperty()
123
- @IsString()
124
- totalCapitalAmount: string;
125
-
126
- @ApiProperty()
127
- stakeHolders: ReadStakeHolders;
128
-
129
- @ApiProperty()
130
- @IsNumber()
131
- idSociety: number;
132
- }
133
-
134
- export class CreateRegistrationFile {
135
- @ApiProperty()
136
- file: TFile;
137
-
138
- @ApiProperty()
139
- fileType: RegistrationFileType;
140
-
141
- @ApiPropertyOptional()
142
- @IsString()
143
- @IsOptional()
144
- stakeholderId?: string;
145
- }
146
-
147
- export class CreateWebhookConfig {
148
- @ApiProperty()
149
- @IsString()
150
- callbackUrl: string;
151
-
152
- @ApiProperty()
153
- @IsString()
154
- secret: string;
155
-
156
- @ApiPropertyOptional()
157
- @IsBoolean()
158
- @ToBoolean()
159
- @IsOptional()
160
- enabled: boolean;
161
- }
@@ -79,43 +79,6 @@ export type GetQontoAttachment = {
79
79
  };
80
80
  };
81
81
 
82
- export type ReadQontoRegistration = {
83
- id: string;
84
- legal_flow: string; // Registration type => company_creation (Company in creation), existing_company (Company already exists)
85
- flow: {
86
- type: 'manual' | 'seamless'; // which type of flow the user will be redirected
87
- breakdown: {
88
- code: string;
89
- detail: string;
90
- source: {
91
- pointer: string;
92
- };
93
- } | null;
94
- };
95
- status:
96
- | 'created'
97
- | 'pending'
98
- | 'user_started'
99
- | 'price_plan_selected'
100
- | 'contract_signed'
101
- | 'submitted'
102
- | 'capital_deposit_activated'
103
- | 'capital_deposit_request_signed'
104
- | 'capital_deposit_certificate_signed'
105
- | 'completed';
106
- redirection_link: string; // link where the user is redirected
107
- created_at: string;
108
- updated_at: string;
109
- locale: string;
110
- partner_user: {
111
- first_name: string | null;
112
- last_name: string | null;
113
- email: string | null;
114
- };
115
- organization: ReadOrganization;
116
- stakeholders: ReadStakeHolder[];
117
- };
118
-
119
82
  export type ReadOrganization = {
120
83
  id?: string;
121
84
  entity_type: 'freelancer' | 'company';
@@ -167,30 +130,3 @@ export class ReadStakeHolder {
167
130
  }
168
131
 
169
132
  export type ReadStakeHolders = ReadStakeHolder[];
170
-
171
- export class ReadQontoRegistrationFile {
172
- id: string;
173
- filename: string;
174
- filesize_bytes: number;
175
- url: string; // TTL of 2 hours
176
- created_at: string;
177
- file_type: string;
178
- stakeholder_id: string | null;
179
- }
180
-
181
- export type ReadQontoWebhookConfig = {
182
- id: string;
183
- created_at: string;
184
- updated_at: string;
185
- callback_url: string;
186
- enabled: boolean;
187
- secret: string;
188
- };
189
-
190
- export type RegistrationFileType =
191
- | 'organization-deposit-certificate'
192
- | 'organization-proof-of-address'
193
- | 'organization-by-laws'
194
- | 'organization-kbis'
195
- | 'stakeholder-proof-of-identity'
196
- | 'stakeholder-residence-permit';
@@ -0,0 +1,10 @@
1
+ export interface SellsyConnectionStatus {
2
+ connected: boolean;
3
+ refreshed?: boolean;
4
+ needReauth?: boolean;
5
+ lastSync?: Date | string;
6
+ expiresAt?: Date;
7
+ expiresIn?: number;
8
+ message?: string;
9
+ error?: string;
10
+ }