@silexpert/core 1.1.4 → 1.1.6
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/Vat.d.ts +1 -2
- package/es/api/resources/Vat.d.ts.map +1 -1
- package/es/api/resources/Vat.js.map +1 -1
- package/es/types/Interface/api/cerfa/3519.d.ts +1 -1
- package/es/types/Interface/api/cerfa/3519.d.ts.map +1 -1
- package/es/types/Interface/api/cerfa/3519.js.map +1 -1
- package/es/types/index.d.ts +1 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +1 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/vat/3519/century17.js +1 -1
- package/es/utils/vat/3519/century17.js.map +1 -1
- package/js/api/resources/Vat.js.map +1 -1
- package/js/types/Interface/api/cerfa/3519.js.map +1 -1
- package/js/types/index.js +10 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/vat/3519/century17.js +1 -1
- package/js/utils/vat/3519/century17.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Vat.ts +1 -2
- package/ts/types/Interface/api/cerfa/3519.ts +1 -1
- package/ts/types/index.ts +1 -0
- package/ts/utils/vat/3519/century17.ts +1 -1
|
@@ -49,7 +49,7 @@ function getCerfa3519Century17Payload(amount, payload) {
|
|
|
49
49
|
iban: (_s = (_r = payload.details) === null || _r === void 0 ? void 0 : _r.iban) !== null && _s !== void 0 ? _s : null,
|
|
50
50
|
bic: (_u = (_t = payload.details) === null || _t === void 0 ? void 0 : _t.bic) !== null && _u !== void 0 ? _u : null
|
|
51
51
|
},
|
|
52
|
-
comment: (_v = payload.
|
|
52
|
+
comment: (_v = payload.commentAnnex) !== null && _v !== void 0 ? _v : null
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
const cerfa3519Century17Fields = exports.cerfa3519Century17Fields = [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"century17.js","names":["getCerfa3519Century17Payload","_dayjs","require","dayjs","_interopRequireWildcard","_classValidator","_phone","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","amount","payload","declaration","period","startDate","format","endDate","recipient","name","society","address","full","zipCode","city","intracommunityVat","second","_c","_b","_a","setting","tvaCode","slice","siret","isDefined","_e","_d","nationality","isFrench","isNotRequired","isRequired","shouldCredit","shouldImpute","phone","_f","owner","formatPhoneNumberToE164","_g","refund","_j","_h","firstname","_l","_k","lastname","quality","_p","_o","_m","userQuality","place","_q","date","firstTime","closing","other","bankAccount","iban","_s","_r","details","bic","_u","_t","comment","_v","cerfa3519Century17Fields","exports","sectionName","childrens","label","type","columns","visibleIf"],"sources":["../../../../ts/utils/vat/3519/century17.ts"],"sourcesContent":["import * as dayjs from 'dayjs';\nimport { isDefined } from 'class-validator';\nimport { Cerfa3519_2017, PayloadCerfa3519_2017 } from '../../../types/Interface/api/cerfa/3519';\nimport { formatPhoneNumberToE164 } from '../../phone';\nimport { CerfaPayloadForm } from '../../../types/Interface/api/cerfa/ReadCerfa';\n\nexport function getCerfa3519Century17Payload(amount: number, payload: PayloadCerfa3519_2017): Cerfa3519_2017 {\n return {\n declaration: {\n period: `${dayjs(payload.startDate).format('DD/MM/YYYY')} - ${dayjs(payload.endDate).format('DD/MM/YYYY')}`,\n recipient: {\n name: payload.society.name,\n address: {\n full: `${payload.society.address}\\n${payload.society.zipCode} ${payload.society.city}`,\n },\n },\n intracommunityVat: { second: payload.setting?.tvaCode?.slice(2, 4) ?? null },\n siret: isDefined(payload.society.siret) ? (payload.society.siret?.slice(0, 9) ?? null) : null,\n nationality: {\n isFrench: true,\n isNotRequired: false,\n isRequired: false,\n },\n shouldCredit: true,\n shouldImpute: false,\n phone: payload.owner?.phone ? formatPhoneNumberToE164(payload.owner?.phone) : null,\n },\n refund: {\n amount,\n name: `${payload.owner?.firstname ?? ''} ${payload.owner?.lastname ?? ''}`,\n quality: payload.owner?.userQuality?.name ?? null,\n place: payload.society.city ?? null,\n date: dayjs().format('YYYY-MM-DD'),\n firstTime: payload.firstTime,\n closing: payload.closing,\n other: payload.other,\n },\n bankAccount: {\n iban: payload.details?.iban ?? null,\n bic: payload.details?.bic ?? null,\n },\n comment: payload.
|
|
1
|
+
{"version":3,"file":"century17.js","names":["getCerfa3519Century17Payload","_dayjs","require","dayjs","_interopRequireWildcard","_classValidator","_phone","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","amount","payload","declaration","period","startDate","format","endDate","recipient","name","society","address","full","zipCode","city","intracommunityVat","second","_c","_b","_a","setting","tvaCode","slice","siret","isDefined","_e","_d","nationality","isFrench","isNotRequired","isRequired","shouldCredit","shouldImpute","phone","_f","owner","formatPhoneNumberToE164","_g","refund","_j","_h","firstname","_l","_k","lastname","quality","_p","_o","_m","userQuality","place","_q","date","firstTime","closing","other","bankAccount","iban","_s","_r","details","bic","_u","_t","comment","_v","commentAnnex","cerfa3519Century17Fields","exports","sectionName","childrens","label","type","columns","visibleIf"],"sources":["../../../../ts/utils/vat/3519/century17.ts"],"sourcesContent":["import * as dayjs from 'dayjs';\nimport { isDefined } from 'class-validator';\nimport { Cerfa3519_2017, PayloadCerfa3519_2017 } from '../../../types/Interface/api/cerfa/3519';\nimport { formatPhoneNumberToE164 } from '../../phone';\nimport { CerfaPayloadForm } from '../../../types/Interface/api/cerfa/ReadCerfa';\n\nexport function getCerfa3519Century17Payload(amount: number, payload: PayloadCerfa3519_2017): Cerfa3519_2017 {\n return {\n declaration: {\n period: `${dayjs(payload.startDate).format('DD/MM/YYYY')} - ${dayjs(payload.endDate).format('DD/MM/YYYY')}`,\n recipient: {\n name: payload.society.name,\n address: {\n full: `${payload.society.address}\\n${payload.society.zipCode} ${payload.society.city}`,\n },\n },\n intracommunityVat: { second: payload.setting?.tvaCode?.slice(2, 4) ?? null },\n siret: isDefined(payload.society.siret) ? (payload.society.siret?.slice(0, 9) ?? null) : null,\n nationality: {\n isFrench: true,\n isNotRequired: false,\n isRequired: false,\n },\n shouldCredit: true,\n shouldImpute: false,\n phone: payload.owner?.phone ? formatPhoneNumberToE164(payload.owner?.phone) : null,\n },\n refund: {\n amount,\n name: `${payload.owner?.firstname ?? ''} ${payload.owner?.lastname ?? ''}`,\n quality: payload.owner?.userQuality?.name ?? null,\n place: payload.society.city ?? null,\n date: dayjs().format('YYYY-MM-DD'),\n firstTime: payload.firstTime,\n closing: payload.closing,\n other: payload.other,\n },\n bankAccount: {\n iban: payload.details?.iban ?? null,\n bic: payload.details?.bic ?? null,\n },\n comment: payload.commentAnnex ?? null,\n };\n}\n\nexport const cerfa3519Century17Fields: CerfaPayloadForm[] = [{\n sectionName: 'Demande de remboursement',\n childrens: [\n {\n label: 'Commentaire',\n key: 'comment',\n type: 'text',\n columns: 12,\n },\n {\n label: '1ère demande',\n key: 'firstTime.is',\n type: 'boolean',\n columns: 6,\n },\n {\n label: 'Création le',\n key: 'firstTime.date',\n type: 'date',\n visibleIf: 'firstTime.is',\n columns: 6,\n },\n {\n label: 'Cession, cessation, décès',\n key: 'closing.is',\n type: 'boolean',\n columns: 6,\n },\n {\n label: 'Le',\n key: 'closing.date',\n type: 'date',\n visibleIf: 'closing.is',\n columns: 6,\n },\n {\n label: 'Autres',\n key: 'other.is',\n type: 'boolean',\n columns: 6,\n },\n ],\n}];"],"mappings":";;;;;;QAMgBA,4BAA4B,GAA5BA,4BAA4B;AAN5C,IAAAC,MAAA,GAAAC,OAAA;AAA+B,IAAnBC,KAAK,GAAAC,uBAAA,CAAAH,MAAA;AACjB,IAAAI,eAAA,GAAAH,OAAA;AAEA,IAAAI,MAAA,GAAAJ,OAAA;AAAsD,SAAAK,yBAAAC,WAAA,eAAAC,OAAA,kCAAA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D,EAAA,cAAAA,EAAA,GAAI;GAClC;AACH;AAEO,MAAME,wBAAwB,GAAAC,OAAA,CAAxBD,wBAAwB,GAAuB,CAAC;EAC3DE,WAAW,EAAE,0BAA0B;EACvCC,SAAS,EAAE,CACT;IACEC,KAAK,EAAE,aAAa;IACpB5E,GAAG,EAAE,SAAS;IACd6E,IAAI,EAAE,MAAM;IACZC,OAAO,EAAE;GACV,EACD;IACEF,KAAK,EAAE,cAAc;IACrB5E,GAAG,EAAE,cAAc;IACnB6E,IAAI,EAAE,SAAS;IACfC,OAAO,EAAE;GACV,EACD;IACEF,KAAK,EAAE,aAAa;IACpB5E,GAAG,EAAE,gBAAgB;IACrB6E,IAAI,EAAE,MAAM;IACZE,SAAS,EAAE,cAAc;IACzBD,OAAO,EAAE;GACV,EACD;IACEF,KAAK,EAAE,2BAA2B;IAClC5E,GAAG,EAAE,YAAY;IACjB6E,IAAI,EAAE,SAAS;IACfC,OAAO,EAAE;GACV,EACD;IACEF,KAAK,EAAE,IAAI;IACX5E,GAAG,EAAE,cAAc;IACnB6E,IAAI,EAAE,MAAM;IACZE,SAAS,EAAE,YAAY;IACvBD,OAAO,EAAE;GACV,EACD;IACEF,KAAK,EAAE,QAAQ;IACf5E,GAAG,EAAE,UAAU;IACf6E,IAAI,EAAE,SAAS;IACfC,OAAO,EAAE;GACV;CAEJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
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",
|
package/ts/api/resources/Vat.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
BasePaginate, CreateRegistrationDetail, IAccountingTransaction, ICustomerVat, QueryCerfa, QueryPaginatedRegistration, QueryPreviousVatDeclaration, QueryVatEntry, ReadRegistration, ReadVatEntry, ReadVatVariousOperations, UpdateOrCreateVatAdvance, UpdateOrCreateVatRegistration, UpdateRegistration,
|
|
2
|
+
BasePaginate, CreateRegistrationDetail, IAccountingTransaction, ICustomerVat, QueryCerfa, QueryPaginatedRegistration, QueryPreviousVatDeclaration, QueryVatEntry, ReadRegistration, ReadVatDeclarationUpdatedEntry, ReadVatEntry, ReadVatVariousOperations, UpdateOrCreateVatAdvance, UpdateOrCreateVatRegistration, UpdateRegistration,
|
|
3
3
|
} from '../..';
|
|
4
|
-
import { ReadVatDeclarationUpdatedEntry } from '../../types/Interface/api/vatDeclaration/ReadVatDeclaration';
|
|
5
4
|
import { Resource } from '../Resource';
|
|
6
5
|
|
|
7
6
|
export class Vat extends Resource {
|
package/ts/types/index.ts
CHANGED
|
@@ -489,6 +489,7 @@ export * from './Enum/CommercialImportHeader';
|
|
|
489
489
|
// Interfaces API
|
|
490
490
|
export * from './Interface/api/adjustment/Query';
|
|
491
491
|
export * from './Interface/api/adjustment/Read';
|
|
492
|
+
export * from './Interface/api/vatDeclaration/ReadVatDeclaration';
|
|
492
493
|
export * from './Interface/api/adjustment/Create';
|
|
493
494
|
export * from './Interface/api/partnerTransactionType/ReadPartnerTransactionType';
|
|
494
495
|
export * from './Interface/api/jeDeclare/ReadJeDeclare';
|