@silexpert/core 0.4.102 → 0.4.103
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.
- package/es/api/resources/FecFile.d.ts +2 -2
- package/es/api/resources/FecFile.d.ts.map +1 -1
- package/es/api/resources/FecFile.js +2 -2
- package/es/api/resources/FecFile.js.map +1 -1
- package/es/api/resources/PartneredAccountant.d.ts +4 -1
- package/es/api/resources/PartneredAccountant.d.ts.map +1 -1
- package/es/api/resources/PartneredAccountant.js +6 -0
- package/es/api/resources/PartneredAccountant.js.map +1 -1
- package/es/api/resources/Product.d.ts +10 -0
- package/es/api/resources/Product.d.ts.map +1 -0
- package/es/api/resources/Product.js +21 -0
- package/es/api/resources/Product.js.map +1 -0
- package/es/api/resources/Society.d.ts +3 -1
- package/es/api/resources/Society.d.ts.map +1 -1
- package/es/api/resources/Society.js +7 -0
- package/es/api/resources/Society.js.map +1 -1
- package/es/types/Enum/ProductType.d.ts +6 -0
- package/es/types/Enum/ProductType.d.ts.map +1 -0
- package/es/types/Enum/ProductType.js +7 -0
- package/es/types/Enum/ProductType.js.map +1 -0
- package/es/types/Enum/RegistrationSource.d.ts +5 -0
- package/es/types/Enum/RegistrationSource.d.ts.map +1 -0
- package/es/types/Enum/RegistrationSource.js +6 -0
- package/es/types/Enum/RegistrationSource.js.map +1 -0
- package/es/types/Enum/Unit.d.ts +9 -0
- package/es/types/Enum/Unit.d.ts.map +1 -0
- package/es/types/Enum/Unit.js +98 -0
- package/es/types/Enum/Unit.js.map +1 -0
- package/es/types/Interface/api/BasePaginate.d.ts +4 -0
- package/es/types/Interface/api/BasePaginate.d.ts.map +1 -1
- package/es/types/Interface/api/BasePaginate.js +27 -1
- package/es/types/Interface/api/BasePaginate.js.map +1 -1
- package/es/types/Interface/api/fecFile/QueryFecFile.d.ts +4 -0
- package/es/types/Interface/api/fecFile/QueryFecFile.d.ts.map +1 -0
- package/es/types/Interface/api/fecFile/QueryFecFile.js +17 -0
- package/es/types/Interface/api/fecFile/QueryFecFile.js.map +1 -0
- package/es/types/Interface/api/partneredAccountant/CreatePartneredAccountantSociety.d.ts +26 -0
- package/es/types/Interface/api/partneredAccountant/CreatePartneredAccountantSociety.d.ts.map +1 -0
- package/es/types/Interface/api/partneredAccountant/CreatePartneredAccountantSociety.js +96 -0
- package/es/types/Interface/api/partneredAccountant/CreatePartneredAccountantSociety.js.map +1 -0
- package/es/types/Interface/api/partneredAccountant/CreatedPartneredAccountantSociety.d.ts +6 -0
- package/es/types/Interface/api/partneredAccountant/CreatedPartneredAccountantSociety.d.ts.map +1 -0
- package/es/types/Interface/api/partneredAccountant/CreatedPartneredAccountantSociety.js +3 -0
- package/es/types/Interface/api/partneredAccountant/CreatedPartneredAccountantSociety.js.map +1 -0
- package/es/types/Interface/api/partneredAccountant/QueryPartneredAccountantSocieties.d.ts +4 -0
- package/es/types/Interface/api/partneredAccountant/QueryPartneredAccountantSocieties.d.ts.map +1 -0
- package/es/types/Interface/api/partneredAccountant/QueryPartneredAccountantSocieties.js +22 -0
- package/es/types/Interface/api/partneredAccountant/QueryPartneredAccountantSocieties.js.map +1 -0
- package/es/types/Interface/api/partneredAccountant/ReadPartneredAccountantSociety.d.ts +6 -0
- package/es/types/Interface/api/partneredAccountant/ReadPartneredAccountantSociety.d.ts.map +1 -0
- package/es/types/Interface/api/partneredAccountant/ReadPartneredAccountantSociety.js +2 -0
- package/es/types/Interface/api/partneredAccountant/ReadPartneredAccountantSociety.js.map +1 -0
- package/es/types/Interface/api/product/CreateProduct.d.ts +10 -0
- package/es/types/Interface/api/product/CreateProduct.d.ts.map +1 -0
- package/es/types/Interface/api/product/CreateProduct.js +62 -0
- package/es/types/Interface/api/product/CreateProduct.js.map +1 -0
- package/es/types/Interface/api/product/QueryProduct.d.ts +5 -0
- package/es/types/Interface/api/product/QueryProduct.d.ts.map +1 -0
- package/es/types/Interface/api/product/QueryProduct.js +27 -0
- package/es/types/Interface/api/product/QueryProduct.js.map +1 -0
- package/es/types/Interface/api/product/UpdateProduct.d.ts +4 -0
- package/es/types/Interface/api/product/UpdateProduct.d.ts.map +1 -0
- package/es/types/Interface/api/product/UpdateProduct.js +4 -0
- package/es/types/Interface/api/product/UpdateProduct.js.map +1 -0
- package/es/types/Interface/api/society/CreateSociety.d.ts +5 -0
- package/es/types/Interface/api/society/CreateSociety.d.ts.map +1 -1
- package/es/types/Interface/api/society/CreateSociety.js +14 -0
- package/es/types/Interface/api/society/CreateSociety.js.map +1 -1
- package/es/types/Interface/api/society/UpdateSociety.d.ts +4 -0
- package/es/types/Interface/api/society/UpdateSociety.d.ts.map +1 -1
- package/es/types/Interface/api/society/UpdateSociety.js +6 -0
- package/es/types/Interface/api/society/UpdateSociety.js.map +1 -1
- package/es/types/Interface/models/IEstimateInvoice.d.ts +2 -4
- package/es/types/Interface/models/IEstimateInvoice.d.ts.map +1 -1
- package/es/types/Interface/models/IEstimateInvoice.js.map +1 -1
- package/es/types/Interface/models/IPartneredAccountantToSociety.d.ts +12 -0
- package/es/types/Interface/models/IPartneredAccountantToSociety.d.ts.map +1 -0
- package/es/types/Interface/models/IPartneredAccountantToSociety.js +2 -0
- package/es/types/Interface/models/IPartneredAccountantToSociety.js.map +1 -0
- package/es/types/Interface/models/IPermission.d.ts +1 -1
- package/es/types/Interface/models/IPermission.d.ts.map +1 -1
- package/es/types/Interface/models/IPermission.js.map +1 -1
- package/es/types/Interface/models/IProduct.d.ts +6 -13
- package/es/types/Interface/models/IProduct.d.ts.map +1 -1
- package/es/types/Interface/models/IProduct.js.map +1 -1
- package/es/types/Interface/models/IProductInvoice.d.ts +22 -0
- package/es/types/Interface/models/IProductInvoice.d.ts.map +1 -0
- package/es/types/Interface/models/IProductInvoice.js +2 -0
- package/es/types/Interface/models/IProductInvoice.js.map +1 -0
- package/es/types/index.d.ts +13 -3
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +13 -3
- package/es/types/index.js.map +1 -1
- package/es/utils/validators/objectId.validator.d.ts +11 -0
- package/es/utils/validators/objectId.validator.d.ts.map +1 -0
- package/es/utils/validators/objectId.validator.js +19 -0
- package/es/utils/validators/objectId.validator.js.map +1 -0
- package/js/api/resources/FecFile.js +3 -3
- package/js/api/resources/FecFile.js.map +1 -1
- package/js/api/resources/PartneredAccountant.js +12 -0
- package/js/api/resources/PartneredAccountant.js.map +1 -1
- package/js/api/resources/Product.js +36 -0
- package/js/api/resources/Product.js.map +1 -0
- package/js/api/resources/Society.js +14 -0
- package/js/api/resources/Society.js.map +1 -1
- package/js/types/Enum/ProductType.js +13 -0
- package/js/types/Enum/ProductType.js.map +1 -0
- package/js/types/Enum/RegistrationSource.js +12 -0
- package/js/types/Enum/RegistrationSource.js.map +1 -0
- package/js/types/Enum/Unit.js +103 -0
- package/js/types/Enum/Unit.js.map +1 -0
- package/js/types/Interface/api/BasePaginate.js +25 -0
- package/js/types/Interface/api/BasePaginate.js.map +1 -1
- package/js/types/Interface/api/fecFile/QueryFecFile.js +27 -0
- package/js/types/Interface/api/fecFile/QueryFecFile.js.map +1 -0
- package/js/types/Interface/api/partneredAccountant/CreatePartneredAccountantSociety.js +94 -0
- package/js/types/Interface/api/partneredAccountant/CreatePartneredAccountantSociety.js.map +1 -0
- package/js/types/Interface/api/partneredAccountant/CreatedPartneredAccountantSociety.js +10 -0
- package/js/types/Interface/api/partneredAccountant/CreatedPartneredAccountantSociety.js.map +1 -0
- package/js/types/Interface/api/partneredAccountant/QueryPartneredAccountantSocieties.js +33 -0
- package/js/types/Interface/api/partneredAccountant/QueryPartneredAccountantSocieties.js.map +1 -0
- package/js/types/Interface/{models/IUnit.js → api/partneredAccountant/ReadPartneredAccountantSociety.js} +1 -1
- package/js/types/Interface/{models/IUnit.js.map → api/partneredAccountant/ReadPartneredAccountantSociety.js.map} +1 -1
- package/js/types/Interface/api/product/CreateProduct.js +51 -0
- package/js/types/Interface/api/product/CreateProduct.js.map +1 -0
- package/js/types/Interface/api/product/QueryProduct.js +33 -0
- package/js/types/Interface/api/product/QueryProduct.js.map +1 -0
- package/js/types/Interface/api/product/UpdateProduct.js +13 -0
- package/js/types/Interface/api/product/UpdateProduct.js.map +1 -0
- package/js/types/Interface/api/society/CreateSociety.js +16 -0
- package/js/types/Interface/api/society/CreateSociety.js.map +1 -1
- package/js/types/Interface/api/society/UpdateSociety.js +7 -1
- package/js/types/Interface/api/society/UpdateSociety.js.map +1 -1
- package/js/types/Interface/models/{IProductType.js → IPartneredAccountantToSociety.js} +1 -1
- package/js/types/Interface/models/{IProductType.js.map → IPartneredAccountantToSociety.js.map} +1 -1
- package/js/types/Interface/models/{IItemEstimate.js → IProductInvoice.js} +1 -1
- package/js/types/Interface/models/{IItemEstimate.js.map → IProductInvoice.js.map} +1 -1
- package/js/types/index.js +147 -27
- package/js/types/index.js.map +1 -1
- package/js/utils/validators/objectId.validator.js +29 -0
- package/js/utils/validators/objectId.validator.js.map +1 -0
- package/package.json +1 -1
- package/ts/api/resources/FecFile.ts +6 -2
- package/ts/api/resources/PartneredAccountant.ts +16 -0
- package/ts/api/resources/Product.ts +31 -0
- package/ts/api/resources/Society.ts +11 -0
- package/ts/types/Enum/ProductType.ts +5 -0
- package/ts/types/Enum/RegistrationSource.ts +4 -0
- package/ts/types/Enum/Unit.ts +105 -0
- package/ts/types/Interface/api/BasePaginate.ts +17 -0
- package/ts/types/Interface/api/fecFile/QueryFecFile.ts +6 -0
- package/ts/types/Interface/api/partneredAccountant/CreatePartneredAccountantSociety.ts +68 -0
- package/ts/types/Interface/api/partneredAccountant/CreatedPartneredAccountantSociety.ts +6 -0
- package/ts/types/Interface/api/partneredAccountant/QueryPartneredAccountantSocieties.ts +11 -0
- package/ts/types/Interface/api/partneredAccountant/ReadPartneredAccountantSociety.ts +4 -0
- package/ts/types/Interface/api/product/CreateProduct.ts +48 -0
- package/ts/types/Interface/api/product/QueryProduct.ts +15 -0
- package/ts/types/Interface/api/product/UpdateProduct.ts +3 -0
- package/ts/types/Interface/api/society/CreateSociety.ts +11 -0
- package/ts/types/Interface/api/society/UpdateSociety.ts +6 -0
- package/ts/types/Interface/models/IEstimateInvoice.ts +2 -4
- package/ts/types/Interface/models/IPartneredAccountantToSociety.ts +15 -0
- package/ts/types/Interface/models/IPermission.ts +1 -1
- package/ts/types/Interface/models/IProduct.ts +6 -13
- package/ts/types/Interface/models/{IItemEstimate.ts → IProductInvoice.ts} +8 -12
- package/ts/types/index.ts +14 -4
- package/ts/utils/validators/objectId.validator.ts +31 -0
- package/es/types/Interface/models/IItemEstimate.d.ts +0 -26
- package/es/types/Interface/models/IItemEstimate.d.ts.map +0 -1
- package/es/types/Interface/models/IItemEstimate.js +0 -2
- package/es/types/Interface/models/IItemEstimate.js.map +0 -1
- package/es/types/Interface/models/IProductType.d.ts +0 -7
- package/es/types/Interface/models/IProductType.d.ts.map +0 -1
- package/es/types/Interface/models/IProductType.js +0 -2
- package/es/types/Interface/models/IProductType.js.map +0 -1
- package/es/types/Interface/models/IUnit.d.ts +0 -8
- package/es/types/Interface/models/IUnit.d.ts.map +0 -1
- package/es/types/Interface/models/IUnit.js +0 -2
- package/es/types/Interface/models/IUnit.js.map +0 -1
- package/ts/types/Interface/models/IProductType.ts +0 -7
- package/ts/types/Interface/models/IUnit.ts +0 -8
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Product = undefined;
|
|
7
|
+
|
|
8
|
+
var _Resource = require("../Resource");
|
|
9
|
+
|
|
10
|
+
class Product extends _Resource.Resource {
|
|
11
|
+
getAll() {
|
|
12
|
+
return this.axios.$get('/commercial-management/products');
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
getPaginated(pagination, query) {
|
|
16
|
+
return this.axios.$get('/commercial-management/products', {
|
|
17
|
+
params: Object.assign(Object.assign({}, pagination), query)
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
create(payload) {
|
|
22
|
+
return this.axios.$post('/commercial-management/products', payload);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
update(id, payload) {
|
|
26
|
+
return this.axios.$put(`/commercial-management/products/${id}`, payload);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
delete(id) {
|
|
30
|
+
return this.axios.$delete(`/commercial-management/products/${id}`);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.Product = Product;
|
|
36
|
+
//# sourceMappingURL=Product.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../ts/api/resources/Product.ts"],"names":[],"mappings":";;;;;;;AAAA;;AAKM,MAAO,OAAP,SAAuB,kBAAvB,CAA+B;AACnC,EAAA,MAAM,GAAA;AACJ,WAAO,KAAK,KAAL,CAAW,IAAX,CAAgB,iCAAhB,CAAP;AACD;;AAED,EAAA,YAAY,CAAC,UAAD,EAA4B,KAA5B,EAAgD;AAC1D,WAAO,KAAK,KAAL,CAAW,IAAX,CAAgB,iCAAhB,EAAmD;AACxD,MAAA,MAAM,EAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EACD,UADC,CAAA,EAED,KAFC;AADkD,KAAnD,CAAP;AAMD;;AAED,EAAA,MAAM,CAAC,OAAD,EAAuB;AAC3B,WAAO,KAAK,KAAL,CAAW,KAAX,CAAiB,iCAAjB,EAAoD,OAApD,CAAP;AACD;;AAED,EAAA,MAAM,CAAC,EAAD,EAAa,OAAb,EAAmC;AACvC,WAAO,KAAK,KAAL,CAAW,IAAX,CAAgB,mCAAmC,EAAE,EAArD,EAAyD,OAAzD,CAAP;AACD;;AAED,EAAA,MAAM,CAAC,EAAD,EAAW;AACf,WAAO,KAAK,KAAL,CAAW,OAAX,CAAmB,mCAAmC,EAAE,EAAxD,CAAP;AACD;;AAxBkC;;QAAxB,O,GAAA,O","sourcesContent":["import { Resource } from '../Resource';\nimport {\n IProduct, QueryPaginate, QueryProduct, BasePaginate, CreateProduct, UpdateProduct,\n} from '../../types';\n\nexport class Product extends Resource {\n getAll(): Promise<Array<IProduct>> {\n return this.axios.$get('/commercial-management/products');\n }\n\n getPaginated(pagination: QueryPaginate, query?: QueryProduct): Promise<BasePaginate<IProduct>> {\n return this.axios.$get('/commercial-management/products', {\n params: {\n ...pagination,\n ...query,\n },\n });\n }\n\n create(payload: CreateProduct): Promise<IProduct> {\n return this.axios.$post('/commercial-management/products', payload);\n }\n\n update(id: number, payload: UpdateProduct): Promise<IProduct> {\n return this.axios.$put(`/commercial-management/products/${id}`, payload);\n }\n\n delete(id: number): Promise<boolean> {\n return this.axios.$delete(`/commercial-management/products/${id}`);\n }\n}"],"sourceRoot":"","file":"Product.js"}
|
|
@@ -32,6 +32,20 @@ class Society extends _Resource.Resource {
|
|
|
32
32
|
|
|
33
33
|
updateSociety(id, data) {
|
|
34
34
|
return this.axios.$put(`/society/${id}/updateSociety`, data);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
update(id, payload) {
|
|
38
|
+
return this.axios.patch(`/society/${id}`, payload);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
archive(id) {
|
|
42
|
+
const payload = {
|
|
43
|
+
society: {
|
|
44
|
+
archive: true,
|
|
45
|
+
archiveDate: new Date()
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
return this.axios.patch(`/society/${id}`, payload);
|
|
35
49
|
} // this endpoint is used to fetch from extern api for legalForm
|
|
36
50
|
|
|
37
51
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../ts/api/resources/Society.ts"],"names":[],"mappings":";;;;;;;AAAA;;
|
|
1
|
+
{"version":3,"sources":["../../../ts/api/resources/Society.ts"],"names":[],"mappings":";;;;;;;AAAA;;AAqBM,MAAO,OAAP,SAAuB,kBAAvB,CAA+B;AAC5B,EAAA,GAAG,CAAC,MAAD,EAAqB;AAC7B,WAAO,KAAK,KAAL,CAA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n ISociety,\n LegalFormSiren,\n GetDataSociety,\n CreateSociety,\n CreateSynchronization,\n UpdateSociety,\n CreateBudgetBalanceBankAccount,\n IUser,\n ListUserSociety,\n CreateUserToSocietyWithPermission,\n UpdateUserToSocietyWithPermission,\n ReadSocietyUsers,\n QuerySociety,\n UpdateSocietyPayload,\n} from '../../types';\n\nexport class Society extends Resource {\n public get(params: QuerySociety): Promise<Society> {\n return this.axios.$get('/society', { params });\n }\n\n getInvoiceEmail(): Promise<IMailSociety | Error> {\n return this.axios.$get('/society/invoiceEmail');\n }\n\n createInvoiceEmail(data: CreateInvoiceMail): Promise<IMailSociety | Error> {\n return this.axios.$post('/society/invoiceEmail', data);\n }\n\n updateInvoiceEmail(data: UpdateInvoiceMail): Promise<IMailSociety | Error> {\n return this.axios.$put('/society/invoiceEmail', data);\n }\n createSociety(data: CreateSociety, fromSubscription: boolean | string, isCreatedInApp: boolean): Promise<ISociety> {\n return this.axios.$post(`/society/create?fromSubscription=${fromSubscription}&isCreatedInApp=${isCreatedInApp}`, data);\n }\n updateSociety(id: number, data: UpdateSociety): Promise<ISociety> {\n return this.axios.$put(`/society/${id}/updateSociety`, data);\n }\n\n update(id: number, payload: UpdateSocietyPayload): Promise<ISociety> {\n return this.axios.patch(`/society/${id}`, payload);\n }\n\n archive(id: number): Promise<ISociety> {\n const payload: UpdateSocietyPayload = { society: { archive: true, archiveDate: new Date() } };\n return this.axios.patch(`/society/${id}`, payload);\n }\n\n // this endpoint is used to fetch from extern api for legalForm\n getDataSociety(params: GetDataSociety): Promise<LegalFormSiren[]> {\n return this.axios.$get('/society/dataSociety', { params });\n }\n synchronize(id: number, params: CreateSynchronization): Promise<string> {\n return this.axios.$post(`/society/${id}/synchronize`, params);\n }\n autoImportationTransactions(): Promise<void> {\n return this.axios.$post('/society/bankAccount/autoImportationTransactions');\n }\n importBalanceBankAccount(idSociety: number, idBankAccount: number, params: CreateBudgetBalanceBankAccount): Promise<number> {\n return this.axios.$post(`/society/${idSociety}/bankAccount/${idBankAccount}/importBalance`, params);\n }\n listUserSociety(idSociety: number, params: ListUserSociety):Promise<ReadSocietyUsers> {\n return this.axios.$get(`/society/${idSociety}/users`, { params });\n }\n deleteUser(idSociety: number, idUser: number): Promise<true> {\n return this.axios.$delete(`/society/${idSociety}/user/${idUser}`);\n }\n createUserToSocietyWithPermission(idSociety: number, data: CreateUserToSocietyWithPermission): Promise<IUser> {\n return this.axios.$post(`/society/${idSociety}/userToSocietyWithPermission`, data);\n }\n updateUserToSocietyWithPermission(idSociety: number, id: number, data: UpdateUserToSocietyWithPermission): Promise<IUser> {\n return this.axios.$put(`/society/${idSociety}/userToSocietyWithPermission/${id}`, data);\n }\n delete(id: number): Promise<number> {\n return this.axios.$delete(`/society/${id}`);\n }\n}\n"],"sourceRoot":"","file":"Society.js"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var ProductType = exports.ProductType = undefined;
|
|
7
|
+
|
|
8
|
+
(function (ProductType) {
|
|
9
|
+
ProductType[ProductType["PRODUCT"] = 1] = "PRODUCT";
|
|
10
|
+
ProductType[ProductType["SERVICE"] = 2] = "SERVICE";
|
|
11
|
+
ProductType[ProductType["GOODS"] = 3] = "GOODS";
|
|
12
|
+
})(ProductType || (exports.ProductType = ProductType = {}));
|
|
13
|
+
//# sourceMappingURL=ProductType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../ts/types/Enum/ProductType.ts"],"names":[],"mappings":";;;;;AAAA,IAAY,WAIX,WAJW,WAIX,YAJD;;AAAA,CAAA,UAAY,WAAZ,EAAuB;AACrB,EAAA,WAAA,CAAA,WAAA,CAAA,SAAA,CAAA,GAAA,CAAA,CAAA,GAAA,SAAA;AACA,EAAA,WAAA,CAAA,WAAA,CAAA,SAAA,CAAA,GAAA,CAAA,CAAA,GAAA,SAAA;AACA,EAAA,WAAA,CAAA,WAAA,CAAA,OAAA,CAAA,GAAA,CAAA,CAAA,GAAA,OAAA;AACD,CAJD,EAAY,WAAW,aAAX,WAAW,GAAX,WAAW,GAAA,EAAA,CAAvB","sourcesContent":["export enum ProductType {\n PRODUCT = 1,\n SERVICE = 2,\n GOODS = 3,\n}"],"sourceRoot":"","file":"ProductType.js"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var RegistrationSource = exports.RegistrationSource = undefined;
|
|
7
|
+
|
|
8
|
+
(function (RegistrationSource) {
|
|
9
|
+
RegistrationSource[RegistrationSource["ONLINE_SUBSCRIPTION"] = 70] = "ONLINE_SUBSCRIPTION";
|
|
10
|
+
RegistrationSource[RegistrationSource["PARTNERED_ACCOUNTANT"] = 90] = "PARTNERED_ACCOUNTANT";
|
|
11
|
+
})(RegistrationSource || (exports.RegistrationSource = RegistrationSource = {}));
|
|
12
|
+
//# sourceMappingURL=RegistrationSource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../ts/types/Enum/RegistrationSource.ts"],"names":[],"mappings":";;;;;AAAA,IAAY,kBAGX,WAHW,kBAGX,YAHD;;AAAA,CAAA,UAAY,kBAAZ,EAA8B;AAC5B,EAAA,kBAAA,CAAA,kBAAA,CAAA,qBAAA,CAAA,GAAA,EAAA,CAAA,GAAA,qBAAA;AACA,EAAA,kBAAA,CAAA,kBAAA,CAAA,sBAAA,CAAA,GAAA,EAAA,CAAA,GAAA,sBAAA;AACD,CAHD,EAAY,kBAAkB,aAAlB,kBAAkB,GAAlB,kBAAkB,GAAA,EAAA,CAA9B","sourcesContent":["export enum RegistrationSource {\n ONLINE_SUBSCRIPTION = 70,\n PARTNERED_ACCOUNTANT = 90,\n}"],"sourceRoot":"","file":"RegistrationSource.js"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
const Unit = exports.Unit = {
|
|
7
|
+
ITEM: {
|
|
8
|
+
id: 1,
|
|
9
|
+
name: 'Article',
|
|
10
|
+
shortName: 'Art'
|
|
11
|
+
},
|
|
12
|
+
HOUR: {
|
|
13
|
+
id: 2,
|
|
14
|
+
name: 'Heure',
|
|
15
|
+
shortName: 'h'
|
|
16
|
+
},
|
|
17
|
+
DAY: {
|
|
18
|
+
id: 3,
|
|
19
|
+
name: 'Jour',
|
|
20
|
+
shortName: 'j'
|
|
21
|
+
},
|
|
22
|
+
KILOGRAM: {
|
|
23
|
+
id: 4,
|
|
24
|
+
name: 'Kilogramme',
|
|
25
|
+
shortName: 'kg'
|
|
26
|
+
},
|
|
27
|
+
LITER: {
|
|
28
|
+
id: 5,
|
|
29
|
+
name: 'Litre',
|
|
30
|
+
shortName: 'l'
|
|
31
|
+
},
|
|
32
|
+
KILOMETER: {
|
|
33
|
+
id: 6,
|
|
34
|
+
name: 'Kilomètres',
|
|
35
|
+
shortName: 'km'
|
|
36
|
+
},
|
|
37
|
+
HALF_DAY: {
|
|
38
|
+
id: 7,
|
|
39
|
+
name: 'Demi journée',
|
|
40
|
+
shortName: 'demi j'
|
|
41
|
+
},
|
|
42
|
+
YEAR: {
|
|
43
|
+
id: 8,
|
|
44
|
+
name: 'Année',
|
|
45
|
+
shortName: 'an'
|
|
46
|
+
},
|
|
47
|
+
WEEK: {
|
|
48
|
+
id: 9,
|
|
49
|
+
name: 'Semaine',
|
|
50
|
+
shortName: 'sem'
|
|
51
|
+
},
|
|
52
|
+
MONTH: {
|
|
53
|
+
id: 10,
|
|
54
|
+
name: 'Mois',
|
|
55
|
+
shortName: 'mois'
|
|
56
|
+
},
|
|
57
|
+
QUARTER: {
|
|
58
|
+
id: 11,
|
|
59
|
+
name: 'Trimestre',
|
|
60
|
+
shortName: 'trst,'
|
|
61
|
+
},
|
|
62
|
+
PIECE: {
|
|
63
|
+
id: 12,
|
|
64
|
+
name: 'Pièce',
|
|
65
|
+
shortName: 'p'
|
|
66
|
+
},
|
|
67
|
+
FIXED: {
|
|
68
|
+
id: 13,
|
|
69
|
+
name: 'Forfaitaire',
|
|
70
|
+
shortName: 'f'
|
|
71
|
+
},
|
|
72
|
+
SQUARE_METER: {
|
|
73
|
+
id: 14,
|
|
74
|
+
name: 'Mètre carré',
|
|
75
|
+
shortName: 'm2'
|
|
76
|
+
},
|
|
77
|
+
CUBIC_METER: {
|
|
78
|
+
id: 15,
|
|
79
|
+
name: 'Mètre cube',
|
|
80
|
+
shortName: 'm3'
|
|
81
|
+
},
|
|
82
|
+
METER: {
|
|
83
|
+
id: 16,
|
|
84
|
+
name: 'Mètre',
|
|
85
|
+
shortName: 'm'
|
|
86
|
+
},
|
|
87
|
+
SUBSCROPTION: {
|
|
88
|
+
id: 17,
|
|
89
|
+
name: 'Abonnement',
|
|
90
|
+
shortName: 'abo'
|
|
91
|
+
},
|
|
92
|
+
NIGHT: {
|
|
93
|
+
id: 18,
|
|
94
|
+
name: 'Nuitée',
|
|
95
|
+
shortName: 'nuit'
|
|
96
|
+
},
|
|
97
|
+
TON: {
|
|
98
|
+
id: 19,
|
|
99
|
+
name: 'Tonne',
|
|
100
|
+
shortName: 't'
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
//# sourceMappingURL=Unit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../ts/types/Enum/Unit.ts"],"names":[],"mappings":";;;;;AAQO,MAAM,IAAI,WAAJ,IAAI,GAAU;AACzB,EAAA,IAAI,EAAE;AACJ,IAAA,EAAE,EAAE,CADA;AAEJ,IAAA,IAAI,EAAE,SAFF;AAGJ,IAAA,SAAS,EAAE;AAHP,GADmB;AAMzB,EAAA,IAAI,EAAE;AACJ,IAAA,EAAE,EAAE,CAD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EL,IAAA,IAAI,EAAE,OAFD;AAGL,IAAA,SAAS,EAAE;AAHN,GAxDkB;AA6DzB,EAAA,KAAK,EAAE;AACL,IAAA,EAAE,EAAE,EADC;AAEL,IAAA,IAAI,EAAE,aAFD;AAGL,IAAA,SAAS,EAAE;AAHN,GA7DkB;AAkEzB,EAAA,YAAY,EAAE;AACZ,IAAA,EAAE,EAAE,EADQ;AAEZ,IAAA,IAAI,EAAE,aAFM;AAGZ,IAAA,SAAS,EAAE;AAHC,GAlEW;AAuEzB,EAAA,WAAW,EAAE;AACX,IAAA,EAAE,EAAE,EADO;AAEX,IAAA,IAAI,EAAE,YAFK;AAGX,IAAA,SAAS,EAAE;AAHA,GAvEY;AA4EzB,EAAA,KAAK,EAAE;AACL,IAAA,EAAE,EAAE,EADC;AAEL,IAAA,IAAI,EAAE,OAFD;AAGL,IAAA,SAAS,EAAE;AAHN,GA5EkB;AAiFzB,EAAA,YAAY,EAAE;AACZ,IAAA,EAAE,EAAE,EADQ;AAEZ,IAAA,IAAI,EAAE,YAFM;AAGZ,IAAA,SAAS,EAAE;AAHC,GAjFW;AAsFzB,EAAA,KAAK,EAAE;AACL,IAAA,EAAE,EAAE,EADC;AAEL,IAAA,IAAI,EAAE,QAFD;AAGL,IAAA,SAAS,EAAE;AAHN,GAtFkB;AA2FzB,EAAA,GAAG,EAAE;AACH,IAAA,EAAE,EAAE,EADD;AAEH,IAAA,IAAI,EAAE,OAFH;AAGH,IAAA,SAAS,EAAE;AAHR;AA3FoB,CAApB","sourcesContent":["export interface IUnit {\n [key: string]: {\n id: number,\n name: string,\n shortName: string,\n }\n}\n\nexport const Unit: IUnit = {\n ITEM: {\n id: 1,\n name: 'Article',\n shortName: 'Art',\n },\n HOUR: {\n id: 2,\n name: 'Heure',\n shortName: 'h',\n },\n DAY: {\n id: 3,\n name: 'Jour',\n shortName: 'j',\n },\n KILOGRAM: {\n id: 4,\n name: 'Kilogramme',\n shortName: 'kg',\n },\n LITER: {\n id: 5,\n name: 'Litre',\n shortName: 'l',\n },\n KILOMETER: {\n id: 6,\n name: 'Kilomètres',\n shortName: 'km',\n },\n HALF_DAY: {\n id: 7,\n name: 'Demi journée',\n shortName: 'demi j',\n },\n YEAR: {\n id: 8,\n name: 'Année',\n shortName: 'an',\n },\n WEEK: {\n id: 9,\n name: 'Semaine',\n shortName: 'sem',\n },\n MONTH: {\n id: 10,\n name: 'Mois',\n shortName: 'mois',\n },\n QUARTER: {\n id: 11,\n name: 'Trimestre',\n shortName: 'trst,',\n },\n PIECE: {\n id: 12,\n name: 'Pièce',\n shortName: 'p',\n },\n FIXED: {\n id: 13,\n name: 'Forfaitaire',\n shortName: 'f',\n },\n SQUARE_METER: {\n id: 14,\n name: 'Mètre carré',\n shortName: 'm2',\n },\n CUBIC_METER: {\n id: 15,\n name: 'Mètre cube',\n shortName: 'm3',\n },\n METER: {\n id: 16,\n name: 'Mètre',\n shortName: 'm',\n },\n SUBSCROPTION: {\n id: 17,\n name: 'Abonnement',\n shortName: 'abo',\n },\n NIGHT: {\n id: 18,\n name: 'Nuitée',\n shortName: 'nuit',\n },\n TON: {\n id: 19,\n name: 'Tonne',\n shortName: 't',\n },\n};"],"sourceRoot":"","file":"Unit.js"}
|
|
@@ -3,4 +3,29 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.OptionalQueryPaginate = undefined;
|
|
7
|
+
|
|
8
|
+
var _classValidator = require("class-validator");
|
|
9
|
+
|
|
10
|
+
var _ = require("../../..");
|
|
11
|
+
|
|
12
|
+
var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
13
|
+
var c = arguments.length,
|
|
14
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
15
|
+
d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
17
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
var __metadata = undefined && undefined.__metadata || function (k, v) {
|
|
21
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
class OptionalQueryPaginate {}
|
|
25
|
+
|
|
26
|
+
exports.OptionalQueryPaginate = OptionalQueryPaginate;
|
|
27
|
+
|
|
28
|
+
__decorate([(0, _.ApiPropertyOptional)(), (0, _classValidator.IsInt)(), (0, _classValidator.Min)(1), (0, _classValidator.IsOptional)(), __metadata("design:type", Number)], OptionalQueryPaginate.prototype, "page", void 0);
|
|
29
|
+
|
|
30
|
+
__decorate([(0, _.ApiPropertyOptional)(), (0, _classValidator.IsInt)(), (0, _classValidator.Min)(1), (0, _classValidator.IsOptional)(), __metadata("design:type", Number)], OptionalQueryPaginate.prototype, "limit", void 0);
|
|
6
31
|
//# sourceMappingURL=BasePaginate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":"","file":"BasePaginate.js"}
|
|
1
|
+
{"version":3,"sources":["../../../../ts/types/Interface/api/BasePaginate.ts"],"names":[],"mappings":";;;;;;;AAAA;;AACA;;;;;;;;;;;;;;AAcM,MAAO,qBAAP,CAA4B;;QAArB,qB,GAAA,qB;;AAKX,UAAA,CAAA,CAJC,4BAID,EAHC,4BAGD,EAFC,yBAAI,CAAJ,CAED,EADC,iCACD,E,iCAAA,CAAA,E,+BAAA,E,MAAA,E,KAAa,CAAb,CAAA;;AAMA,UAAA,CAAA,CAJC,4BAID,EAHC,4BAGD,EAFC,yBAAI,CAAJ,CAED,EADC,iCACD,E,iCAAA,CAAA,E,+BAAA,E,OAAA,E,KAAc,CAAd,CAAA","sourcesContent":["import { IsInt, IsOptional, Min } from 'class-validator';\nimport { ApiPropertyOptional } from '../../..';\n\nexport interface BasePaginate<T> {\n maxPages: number;\n currentPage: number;\n totalItems: number;\n data: T[];\n}\n\nexport interface QueryPaginate {\n page: number,\n limit: number,\n}\n\nexport class OptionalQueryPaginate implements QueryPaginate {\n @ApiPropertyOptional()\n @IsInt()\n @Min(1)\n @IsOptional()\n page: number;\n\n @ApiPropertyOptional()\n @IsInt()\n @Min(1)\n @IsOptional()\n limit: number;\n}\n"],"sourceRoot":"","file":"BasePaginate.js"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.QueryFecFile = undefined;
|
|
7
|
+
|
|
8
|
+
var _utils = require("../../../../utils");
|
|
9
|
+
|
|
10
|
+
var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
11
|
+
var c = arguments.length,
|
|
12
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
13
|
+
d;
|
|
14
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
15
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
var __metadata = undefined && undefined.__metadata || function (k, v) {
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
class QueryFecFile {}
|
|
23
|
+
|
|
24
|
+
exports.QueryFecFile = QueryFecFile;
|
|
25
|
+
|
|
26
|
+
__decorate([(0, _utils.ApiPropertyOptional)(), __metadata("design:type", Number)], QueryFecFile.prototype, "idSociety", void 0);
|
|
27
|
+
//# sourceMappingURL=QueryFecFile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../ts/types/Interface/api/fecFile/QueryFecFile.ts"],"names":[],"mappings":";;;;;;;AAAA;;;;;;;;;;;;;;AAEM,MAAO,YAAP,CAAmB;;QAAZ,Y,GAAA,Y;;AAEX,UAAA,CAAA,CADC,iCACD,E,iCAAA,CAAA,E,sBAAA,E,WAAA,E,KAAmB,CAAnB,CAAA","sourcesContent":["import { ApiPropertyOptional } from '../../../../utils';\n\nexport class QueryFecFile {\n @ApiPropertyOptional()\n idSociety?: number;\n}"],"sourceRoot":"","file":"QueryFecFile.js"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.CreatePartneredAccountantSociety = undefined;
|
|
7
|
+
|
|
8
|
+
var _ = require("../../../..");
|
|
9
|
+
|
|
10
|
+
var _AccountsSectors = require("../../../Enum/AccountsSectors");
|
|
11
|
+
|
|
12
|
+
var _TaxSystem = require("../../../Enum/TaxSystem");
|
|
13
|
+
|
|
14
|
+
var _ProfitsType = require("../../../Enum/ProfitsType");
|
|
15
|
+
|
|
16
|
+
var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17
|
+
var c = arguments.length,
|
|
18
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
19
|
+
d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
var __metadata = undefined && undefined.__metadata || function (k, v) {
|
|
25
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
class CreatePartneredAccountantSociety {}
|
|
29
|
+
|
|
30
|
+
exports.CreatePartneredAccountantSociety = CreatePartneredAccountantSociety;
|
|
31
|
+
|
|
32
|
+
__decorate([(0, _.ApiProperty)(), __metadata("design:type", String)], CreatePartneredAccountantSociety.prototype, "firstname", void 0);
|
|
33
|
+
|
|
34
|
+
__decorate([(0, _.ApiProperty)(), __metadata("design:type", String)], CreatePartneredAccountantSociety.prototype, "lastname", void 0);
|
|
35
|
+
|
|
36
|
+
__decorate([(0, _.ApiProperty)(), __metadata("design:type", String)], CreatePartneredAccountantSociety.prototype, "email", void 0);
|
|
37
|
+
|
|
38
|
+
__decorate([(0, _.ApiProperty)(), __metadata("design:type", String)], CreatePartneredAccountantSociety.prototype, "phoneNumber", void 0);
|
|
39
|
+
|
|
40
|
+
__decorate([(0, _.ApiProperty)({
|
|
41
|
+
description: 'Nom de la société'
|
|
42
|
+
}), __metadata("design:type", String)], CreatePartneredAccountantSociety.prototype, "name", void 0);
|
|
43
|
+
|
|
44
|
+
__decorate([(0, _.ApiProperty)(), __metadata("design:type", Number)], CreatePartneredAccountantSociety.prototype, "idLegalForm", void 0);
|
|
45
|
+
|
|
46
|
+
__decorate([(0, _.ApiProperty)({
|
|
47
|
+
enum: _AccountsSectors.AccountsSectorsEnum,
|
|
48
|
+
default: _AccountsSectors.AccountsSectorsEnum.DEFAULT.id
|
|
49
|
+
}), __metadata("design:type", Number)], CreatePartneredAccountantSociety.prototype, "idSector", void 0);
|
|
50
|
+
|
|
51
|
+
__decorate([(0, _.ApiProperty)({
|
|
52
|
+
enum: _.VatRegime
|
|
53
|
+
}), __metadata("design:type", Number)], CreatePartneredAccountantSociety.prototype, "idVatRegime", void 0);
|
|
54
|
+
|
|
55
|
+
__decorate([(0, _.ApiProperty)({
|
|
56
|
+
enum: _.FiscalRegime
|
|
57
|
+
}), __metadata("design:type", Number)], CreatePartneredAccountantSociety.prototype, "idFiscalRegime", void 0);
|
|
58
|
+
|
|
59
|
+
__decorate([(0, _.ApiProperty)({
|
|
60
|
+
enum: _.Activity
|
|
61
|
+
}), __metadata("design:type", Number)], CreatePartneredAccountantSociety.prototype, "idActivity", void 0);
|
|
62
|
+
|
|
63
|
+
__decorate([(0, _.ApiProperty)({
|
|
64
|
+
enum: _TaxSystem.TaxSystem
|
|
65
|
+
}), __metadata("design:type", Number)], CreatePartneredAccountantSociety.prototype, "idTaxSystem", void 0);
|
|
66
|
+
|
|
67
|
+
__decorate([(0, _.ApiProperty)({
|
|
68
|
+
enum: _ProfitsType.ProfitsType
|
|
69
|
+
}), __metadata("design:type", Number)], CreatePartneredAccountantSociety.prototype, "idProfitsType", void 0);
|
|
70
|
+
|
|
71
|
+
__decorate([(0, _.ApiProperty)({
|
|
72
|
+
description: 'Date de début de l\'exercice (format YYYY-MM-DD)'
|
|
73
|
+
}), __metadata("design:type", String)], CreatePartneredAccountantSociety.prototype, "startDate", void 0);
|
|
74
|
+
|
|
75
|
+
__decorate([(0, _.ApiProperty)({
|
|
76
|
+
description: 'Date de fin de l\'exercice (format YYYY-MM-DD)'
|
|
77
|
+
}), __metadata("design:type", String)], CreatePartneredAccountantSociety.prototype, "endDate", void 0);
|
|
78
|
+
|
|
79
|
+
__decorate([(0, _.ApiProperty)({
|
|
80
|
+
enum: _.ComptaType
|
|
81
|
+
}), __metadata("design:type", Number)], CreatePartneredAccountantSociety.prototype, "idComptaType", void 0);
|
|
82
|
+
|
|
83
|
+
__decorate([(0, _.ApiPropertyOptional)(), __metadata("design:type", Object)], CreatePartneredAccountantSociety.prototype, "siret", void 0);
|
|
84
|
+
|
|
85
|
+
__decorate([(0, _.ApiPropertyOptional)(), __metadata("design:type", Object)], CreatePartneredAccountantSociety.prototype, "address", void 0);
|
|
86
|
+
|
|
87
|
+
__decorate([(0, _.ApiPropertyOptional)(), __metadata("design:type", Object)], CreatePartneredAccountantSociety.prototype, "city", void 0);
|
|
88
|
+
|
|
89
|
+
__decorate([(0, _.ApiPropertyOptional)(), __metadata("design:type", Object)], CreatePartneredAccountantSociety.prototype, "zipCode", void 0);
|
|
90
|
+
|
|
91
|
+
__decorate([(0, _.ApiPropertyOptional)({
|
|
92
|
+
enum: _.Country
|
|
93
|
+
}), __metadata("design:type", Object)], CreatePartneredAccountantSociety.prototype, "idCountry", void 0);
|
|
94
|
+
//# sourceMappingURL=CreatePartneredAccountantSociety.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../ts/types/Interface/api/partneredAccountant/CreatePartneredAccountantSociety.ts"],"names":[],"mappings":";;;;;;;AAAA;;AAGA;;AACA;;AACA;;;;;;;;;;;;;;AAEM,MAAO,gCAAP,CAAuC;;QAAhC,gC,GAAA,gC;;AAEX,UAAA,CAAA,CADC,oBACD,E,iCAAA,CAAA,E,0CAAA,E,WAAA,E,KAAkB,CAAlB,CAAA;;AAGA,UAAA,CAAA,CADC,oBACD,E,iCAAA,CAAA,E,0CAAA,E,UAAA,E,KAAiB,CAAjB,CAAA;;AAGA,UAAA,CAAA,CADC,oBACD,E,iCAAA,CAAA,E,0CAAA,E,OAAA,E,KAAc,CAAd,CAAA;;AAGA,UAAA,CAAA,CADC,oBACD,E,iCAAA,CAAA,E,0CAAA,E,aAAA,E,KAAoB,CAApB,CAAA;;AAGA,UAAA,CAAA,CADC,mBAAY;AAAE,EAAA,WAAW,EAAE;AAAf,CAAZ,CACD,E,iCAAA,CAAA,E,0CAAA,E,MAAA,E,KAAa,CAAb,CAAA;;AAGA,UAAA,CAAA,CADC,oBACD,E,iCAAA,CAAA,E,0CAAA,E,aAAA,E,KAAoB,CAApB,CAAA;;AAGA,UAAA,CAAA,CADC,mBAAY;AAAE,EAAA,IAAI,EAAE,oCAAR;AAA6B,EAAA,OAAO,EAAE,qCAAoB,OA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CADC,4BACD,E,iCAAA,CAAA,E,0CAAA,E,SAAA,E,KAAwB,CAAxB,CAAA;;AAGA,UAAA,CAAA,CADC,4BACD,E,iCAAA,CAAA,E,0CAAA,E,MAAA,E,KAAqB,CAArB,CAAA;;AAGA,UAAA,CAAA,CADC,4BACD,E,iCAAA,CAAA,E,0CAAA,E,SAAA,E,KAAwB,CAAxB,CAAA;;AAGA,UAAA,CAAA,CADC,2BAAoB;AAAE,EAAA,IAAI,EAAE;AAAR,CAApB,CACD,E,iCAAA,CAAA,E,0CAAA,E,WAAA,E,KAA2B,CAA3B,CAAA","sourcesContent":["import {\n ApiProperty, VatRegime, FiscalRegime, ComptaType, ApiPropertyOptional, Country, Activity,\n} from '../../../..';\nimport { AccountsSectorsEnum } from '../../../Enum/AccountsSectors';\nimport { TaxSystem } from '../../../Enum/TaxSystem';\nimport { ProfitsType } from '../../../Enum/ProfitsType';\n\nexport class CreatePartneredAccountantSociety {\n @ApiProperty()\n firstname: string;\n\n @ApiProperty()\n lastname: string;\n\n @ApiProperty()\n email: string;\n\n @ApiProperty()\n phoneNumber: string;\n\n @ApiProperty({ description: 'Nom de la société' })\n name: string;\n\n @ApiProperty()\n idLegalForm: number;\n\n @ApiProperty({ enum: AccountsSectorsEnum, default: AccountsSectorsEnum.DEFAULT.id })\n idSector: number;\n\n @ApiProperty({ enum: VatRegime })\n idVatRegime: VatRegime;\n\n @ApiProperty({ enum: FiscalRegime })\n idFiscalRegime: FiscalRegime;\n\n @ApiProperty({ enum: Activity })\n idActivity: Activity;\n\n @ApiProperty({ enum: TaxSystem })\n idTaxSystem: TaxSystem;\n\n @ApiProperty({ enum: ProfitsType })\n idProfitsType: ProfitsType;\n\n @ApiProperty({ description: 'Date de début de l\\'exercice (format YYYY-MM-DD)' })\n startDate: string;\n\n @ApiProperty({ description: 'Date de fin de l\\'exercice (format YYYY-MM-DD)' })\n endDate: string;\n\n @ApiProperty({ enum: ComptaType })\n idComptaType: ComptaType;\n\n @ApiPropertyOptional()\n siret?: string | null;\n\n @ApiPropertyOptional()\n address?: string | null;\n\n @ApiPropertyOptional()\n city?: string | null;\n\n @ApiPropertyOptional()\n zipCode?: string | null;\n\n @ApiPropertyOptional({ enum: Country })\n idCountry?: Country | null;\n}"],"sourceRoot":"","file":"CreatePartneredAccountantSociety.js"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
class CreatedPartneredAccountantSociety {}
|
|
8
|
+
|
|
9
|
+
exports.CreatedPartneredAccountantSociety = CreatedPartneredAccountantSociety;
|
|
10
|
+
//# sourceMappingURL=CreatedPartneredAccountantSociety.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../ts/types/Interface/api/partneredAccountant/CreatedPartneredAccountantSociety.ts"],"names":[],"mappings":";;;;;;AAEM,MAAO,iCAAP,CAAwC;;QAAjC,iC,GAAA,iC","sourcesContent":["import { IUser, ISociety } from '../../..';\n\nexport class CreatedPartneredAccountantSociety {\n society: ISociety;\n user: IUser;\n}"],"sourceRoot":"","file":"CreatedPartneredAccountantSociety.js"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.QueryPartneredAccountantSocieties = undefined;
|
|
7
|
+
|
|
8
|
+
var _classValidator = require("class-validator");
|
|
9
|
+
|
|
10
|
+
var _utils = require("../../../../utils");
|
|
11
|
+
|
|
12
|
+
var _boolean = require("../../../../utils/transforms/boolean.transform");
|
|
13
|
+
|
|
14
|
+
var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length,
|
|
16
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
17
|
+
d;
|
|
18
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
19
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
var __metadata = undefined && undefined.__metadata || function (k, v) {
|
|
23
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
class QueryPartneredAccountantSocieties {}
|
|
27
|
+
|
|
28
|
+
exports.QueryPartneredAccountantSocieties = QueryPartneredAccountantSocieties;
|
|
29
|
+
|
|
30
|
+
__decorate([(0, _utils.ApiPropertyOptional)({
|
|
31
|
+
description: 'Retourne uniquement les utilisateurs actifs / inactifs'
|
|
32
|
+
}), (0, _classValidator.IsBoolean)(), (0, _boolean.ToBoolean)(), (0, _classValidator.IsOptional)(), __metadata("design:type", Boolean)], QueryPartneredAccountantSocieties.prototype, "isActive", void 0);
|
|
33
|
+
//# sourceMappingURL=QueryPartneredAccountantSocieties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../ts/types/Interface/api/partneredAccountant/QueryPartneredAccountantSocieties.ts"],"names":[],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;;;;;;;;;AAEM,MAAO,iCAAP,CAAwC;;QAAjC,iC,GAAA,iC;;AAKX,UAAA,CAAA,CAJC,gCAAoB;AAAE,EAAA,WAAW,EAAE;AAAf,CAApB,CAID,EAHC,gCAGD,EAFC,yBAED,EADC,iCACD,E,kCAAA,CAAA,E,2CAAA,E,UAAA,E,KAAmB,CAAnB,CAAA","sourcesContent":["import { IsBoolean, IsOptional } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryPartneredAccountantSocieties {\n @ApiPropertyOptional({ description: 'Retourne uniquement les utilisateurs actifs / inactifs' })\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isActive?: boolean;\n}"],"sourceRoot":"","file":"QueryPartneredAccountantSocieties.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":"","file":"
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":"","file":"ReadPartneredAccountantSociety.js"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.CreateProduct = undefined;
|
|
7
|
+
|
|
8
|
+
var _classValidator = require("class-validator");
|
|
9
|
+
|
|
10
|
+
var _ = require("../../..");
|
|
11
|
+
|
|
12
|
+
var _2 = require("../../../..");
|
|
13
|
+
|
|
14
|
+
var _objectId = require("../../../../utils/validators/objectId.validator");
|
|
15
|
+
|
|
16
|
+
var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17
|
+
var c = arguments.length,
|
|
18
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
19
|
+
d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
var __metadata = undefined && undefined.__metadata || function (k, v) {
|
|
25
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
class CreateProduct {}
|
|
29
|
+
|
|
30
|
+
exports.CreateProduct = CreateProduct;
|
|
31
|
+
|
|
32
|
+
__decorate([(0, _2.ApiProperty)(), (0, _classValidator.IsString)(), __metadata("design:type", String)], CreateProduct.prototype, "name", void 0);
|
|
33
|
+
|
|
34
|
+
__decorate([(0, _2.ApiProperty)(), (0, _classValidator.IsNumber)({
|
|
35
|
+
maxDecimalPlaces: 6
|
|
36
|
+
}, {
|
|
37
|
+
message: 'Price should be a number with maximum 6 decimal'
|
|
38
|
+
}), (0, _classValidator.Min)(0, {
|
|
39
|
+
message: 'Price should be positive'
|
|
40
|
+
}), __metadata("design:type", Number)], CreateProduct.prototype, "priceTaxExcluded", void 0);
|
|
41
|
+
|
|
42
|
+
__decorate([(0, _2.ApiProperty)(), (0, _classValidator.IsNumber)(), (0, _objectId.IsObjectId)(_.Vat), __metadata("design:type", Number)], CreateProduct.prototype, "idVAT", void 0);
|
|
43
|
+
|
|
44
|
+
__decorate([(0, _2.ApiProperty)(), (0, _classValidator.IsNumber)(), (0, _objectId.IsObjectId)(_.Unit), __metadata("design:type", Number)], CreateProduct.prototype, "unit", void 0);
|
|
45
|
+
|
|
46
|
+
__decorate([(0, _2.ApiProperty)(), (0, _classValidator.IsEnum)(_.ProductType), __metadata("design:type", Number)], CreateProduct.prototype, "type", void 0);
|
|
47
|
+
|
|
48
|
+
__decorate([(0, _2.ApiPropertyOptional)(), (0, _classValidator.IsString)(), (0, _classValidator.IsOptional)(), __metadata("design:type", String)], CreateProduct.prototype, "comment", void 0);
|
|
49
|
+
|
|
50
|
+
__decorate([(0, _2.ApiPropertyOptional)(), (0, _classValidator.IsString)(), (0, _classValidator.IsOptional)(), __metadata("design:type", String)], CreateProduct.prototype, "codeProduct", void 0);
|
|
51
|
+
//# sourceMappingURL=CreateProduct.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../ts/types/Interface/api/product/CreateProduct.ts"],"names":[],"mappings":";;;;;;;AAAA;;AAIA;;AACA;;AACA;;;;;;;;;;;;;;AAEM,MAAO,aAAP,CAAoB;;QAAb,a,GAAA,a;;AAGX,UAAA,CAAA,CAFC,qBAED,EADC,+BACD,E,iCAAA,CAAA,E,uBAAA,E,MAAA,E,KAAa,CAAb,CAAA;;AAWA,UAAA,CAAA,CATC,qBASD,EARC,8BAAS;AACR,EAAA,gBAAgB,EAAE;AADV,CAAT,EAEE;AACD,EAAA,OAAO,EAAE;AADR,CAFF,CAQD,EAHC,yBAAI,CAAJ,EAAO;AACN,EAAA,OAAO,EAAE;AADH,CAAP,CAGD,E,iCAAA,CAAA,E,uBAAA,E,kBAAA,E,KAAyB,CAAzB,CAAA;;AAKA,UAAA,CAAA,CAHC,qBAGD,EAFC,+BAED,EADC,0BAAW,KAAX,CACD,E,iCAAA,CAAA,E,uBAAA,E,OAAA,E,KAAc,CAAd,CAAA;;AAKA,UAAA,CAAA,CAHC,qBAGD,EAFC,+BAED,EADC,0BAAW,MAAX,CACD,E,iCAAA,CAAA,E,uBAAA,E,MAAA,E,KAAa,CAAb,CAAA;;AAIA,UAAA,CAAA,CAFC,qBAED,EADC,4BAAO,aAAP,CACD,E,iCAAA,CAAA,E,uBAAA,E,MAAA,E,KAAa,CAAb,CAAA;;AAKA,UAAA,CAAA,CAHC,6BAGD,EAFC,+BAED,EADC,iCACD,E,iCAAA,CAAA,E,uBAAA,E,SAAA,E,KAAiB,CAAjB,CAAA;;AAKA,UAAA,CAAA,CAHC,6BAGD,EAFC,+BAED,EADC,iCACD,E,iCAAA,CAAA,E,uBAAA,E,aAAA,E,KAAqB,CAArB,CAAA","sourcesContent":["import {\n IsEnum,\n IsNumber, IsOptional, IsString, Min,\n} from 'class-validator';\nimport { ProductType, Unit, Vat } from '../../..';\nimport { ApiProperty, ApiPropertyOptional } from '../../../..';\nimport { IsObjectId } from '../../../../utils/validators/objectId.validator';\n\nexport class CreateProduct {\n @ApiProperty()\n @IsString()\n name: string;\n\n @ApiProperty()\n @IsNumber({\n maxDecimalPlaces: 6,\n }, {\n message: 'Price should be a number with maximum 6 decimal',\n })\n @Min(0, {\n message: 'Price should be positive',\n })\n priceTaxExcluded: number;\n\n @ApiProperty()\n @IsNumber()\n @IsObjectId(Vat)\n idVAT: number;\n\n @ApiProperty()\n @IsNumber()\n @IsObjectId(Unit)\n unit: number;\n\n @ApiProperty()\n @IsEnum(ProductType)\n type: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n comment?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n codeProduct?: string;\n}\n"],"sourceRoot":"","file":"CreateProduct.js"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.QueryProduct = undefined;
|
|
7
|
+
|
|
8
|
+
var _classValidator = require("class-validator");
|
|
9
|
+
|
|
10
|
+
var _ = require("../../..");
|
|
11
|
+
|
|
12
|
+
var _2 = require("../../../..");
|
|
13
|
+
|
|
14
|
+
var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length,
|
|
16
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
17
|
+
d;
|
|
18
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
19
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
var __metadata = undefined && undefined.__metadata || function (k, v) {
|
|
23
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
class QueryProduct {}
|
|
27
|
+
|
|
28
|
+
exports.QueryProduct = QueryProduct;
|
|
29
|
+
|
|
30
|
+
__decorate([(0, _2.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsString)(), __metadata("design:type", String)], QueryProduct.prototype, "search", void 0);
|
|
31
|
+
|
|
32
|
+
__decorate([(0, _2.ApiPropertyOptional)(), (0, _classValidator.IsOptional)(), (0, _classValidator.IsEnum)(_.ProductType), __metadata("design:type", Number)], QueryProduct.prototype, "type", void 0);
|
|
33
|
+
//# sourceMappingURL=QueryProduct.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../ts/types/Interface/api/product/QueryProduct.ts"],"names":[],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;;;;;;;;;AAEM,MAAO,YAAP,CAAmB;;QAAZ,Y,GAAA,Y;;AAIX,UAAA,CAAA,CAHC,6BAGD,EAFC,iCAED,EADC,+BACD,E,iCAAA,CAAA,E,sBAAA,E,QAAA,E,KAAgB,CAAhB,CAAA;;AAKA,UAAA,CAAA,CAHC,6BAGD,EAFC,iCAED,EADC,4BAAO,aAAP,CACD,E,iCAAA,CAAA,E,sBAAA,E,MAAA,E,KAAc,CAAd,CAAA","sourcesContent":["import { IsEnum, IsOptional, IsString } from 'class-validator';\nimport { ProductType } from '../../..';\nimport { ApiPropertyOptional } from '../../../..';\n\nexport class QueryProduct {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(ProductType)\n type?: number;\n}"],"sourceRoot":"","file":"QueryProduct.js"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.UpdateProduct = undefined;
|
|
7
|
+
|
|
8
|
+
var _CreateProduct = require("./CreateProduct");
|
|
9
|
+
|
|
10
|
+
class UpdateProduct extends _CreateProduct.CreateProduct {}
|
|
11
|
+
|
|
12
|
+
exports.UpdateProduct = UpdateProduct;
|
|
13
|
+
//# sourceMappingURL=UpdateProduct.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../ts/types/Interface/api/product/UpdateProduct.ts"],"names":[],"mappings":";;;;;;;AAAA;;AAEM,MAAO,aAAP,SAA6B,4BAA7B,CAA0C;;QAAnC,a,GAAA,a","sourcesContent":["import { CreateProduct } from './CreateProduct';\n\nexport class UpdateProduct extends CreateProduct {}"],"sourceRoot":"","file":"UpdateProduct.js"}
|
|
@@ -7,6 +7,10 @@ exports.CreateSociety = undefined;
|
|
|
7
7
|
|
|
8
8
|
var _utils = require("../../../../utils");
|
|
9
9
|
|
|
10
|
+
var _SubscriptionType = require("../../../Enum/SubscriptionType");
|
|
11
|
+
|
|
12
|
+
var _RegistrationSource = require("../../../Enum/RegistrationSource");
|
|
13
|
+
|
|
10
14
|
var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
11
15
|
var c = arguments.length,
|
|
12
16
|
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
@@ -47,6 +51,10 @@ __decorate([(0, _utils.ApiPropertyOptional)(), __metadata("design:type", String)
|
|
|
47
51
|
|
|
48
52
|
__decorate([(0, _utils.ApiPropertyOptional)(), __metadata("design:type", String)], CreateSociety.prototype, "zipCode", void 0);
|
|
49
53
|
|
|
54
|
+
__decorate([(0, _utils.ApiPropertyOptional)({
|
|
55
|
+
enum: _RegistrationSource.RegistrationSource
|
|
56
|
+
}), __metadata("design:type", Number)], CreateSociety.prototype, "idSource", void 0);
|
|
57
|
+
|
|
50
58
|
__decorate([(0, _utils.ApiPropertyOptional)(), __metadata("design:type", Object)], CreateSociety.prototype, "analyticsUtm", void 0);
|
|
51
59
|
|
|
52
60
|
__decorate([(0, _utils.ApiPropertyOptional)(), __metadata("design:type", String)], CreateSociety.prototype, "confirmedAt", void 0);
|
|
@@ -58,4 +66,12 @@ __decorate([(0, _utils.ApiPropertyOptional)(), __metadata("design:type", Number)
|
|
|
58
66
|
__decorate([(0, _utils.ApiPropertyOptional)(), __metadata("design:type", Number)], CreateSociety.prototype, "idTaxSystem", void 0);
|
|
59
67
|
|
|
60
68
|
__decorate([(0, _utils.ApiPropertyOptional)(), __metadata("design:type", Number)], CreateSociety.prototype, "idSector", void 0);
|
|
69
|
+
|
|
70
|
+
__decorate([(0, _utils.ApiPropertyOptional)({
|
|
71
|
+
enum: _SubscriptionType.SubscriptionType
|
|
72
|
+
}), __metadata("design:type", Number)], CreateSociety.prototype, "idSubscriptionType", void 0);
|
|
73
|
+
|
|
74
|
+
__decorate([(0, _utils.ApiPropertyOptional)({
|
|
75
|
+
description: 'Identifiant de l\'Expert-Comptable partenaire'
|
|
76
|
+
}), __metadata("design:type", Object)], CreateSociety.prototype, "idPartneredAccountant", void 0);
|
|
61
77
|
//# sourceMappingURL=CreateSociety.js.map
|