@silexpert/core 1.3.99-1 → 1.3.99-3
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/dist/cjs/api/resources/Sellsy.d.ts +19 -0
- package/dist/cjs/api/resources/Sellsy.d.ts.map +1 -0
- package/dist/cjs/api/resources/Sellsy.js +20 -0
- package/dist/cjs/api/resources/Sellsy.js.map +1 -0
- package/dist/cjs/types/Form/FormConnector.js +0 -13
- package/dist/cjs/types/Form/FormConnector.js.map +1 -1
- package/dist/mjs/api/resources/Sellsy.d.ts +19 -0
- package/dist/mjs/api/resources/Sellsy.d.ts.map +1 -0
- package/dist/mjs/api/resources/Sellsy.js +16 -0
- package/dist/mjs/api/resources/Sellsy.js.map +1 -0
- package/dist/mjs/types/Form/FormConnector.js +12 -13
- package/dist/mjs/types/Form/FormConnector.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Sellsy.ts +24 -0
- package/ts/types/Form/FormConnector.ts +12 -12
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Resource } from '../Resource';
|
|
2
|
+
import { SellsyConnectionStatus } from '../../types/Interface/api/sellsy/SellsyConnectionStatus';
|
|
3
|
+
export declare class Sellsy extends Resource {
|
|
4
|
+
oauthCallback(payload: {
|
|
5
|
+
code: string;
|
|
6
|
+
codeVerifier: string;
|
|
7
|
+
idSociety: number;
|
|
8
|
+
}): Promise<{
|
|
9
|
+
success: boolean;
|
|
10
|
+
message: string;
|
|
11
|
+
}>;
|
|
12
|
+
disconnect(idSociety: number): Promise<{
|
|
13
|
+
success: boolean;
|
|
14
|
+
message: string;
|
|
15
|
+
}>;
|
|
16
|
+
getConnectionStatus(societyId: number): Promise<SellsyConnectionStatus>;
|
|
17
|
+
createInvoices(payload: any): Promise<any>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=Sellsy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sellsy.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Sellsy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,yDAAyD,CAAC;AAEjG,qBAAa,MAAO,SAAQ,QAAQ;IAClC,aAAa,CAAC,OAAO,EAAE;QACrB,IAAI,EAAE,MAAM,CAAC;QACb,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,EAAE,MAAM,CAAC;KACnB,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAIlD,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAI7E,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAIvE,cAAc,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;CAG3C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Sellsy = void 0;
|
|
4
|
+
const Resource_1 = require("../Resource");
|
|
5
|
+
class Sellsy extends Resource_1.Resource {
|
|
6
|
+
oauthCallback(payload) {
|
|
7
|
+
return this.axios.$post('/auth/sellsy/callback', payload);
|
|
8
|
+
}
|
|
9
|
+
disconnect(idSociety) {
|
|
10
|
+
return this.axios.$post('/auth/sellsy/disconnect', { idSociety });
|
|
11
|
+
}
|
|
12
|
+
getConnectionStatus(societyId) {
|
|
13
|
+
return this.axios.$get('/auth/sellsy/status', { params: { societyId } });
|
|
14
|
+
}
|
|
15
|
+
createInvoices(payload) {
|
|
16
|
+
return this.axios.$post('/connectors/sellsy/invoices', payload);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.Sellsy = Sellsy;
|
|
20
|
+
//# sourceMappingURL=Sellsy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sellsy.js","sourceRoot":"","sources":["../../../../ts/api/resources/Sellsy.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAGvC,MAAa,MAAO,SAAQ,mBAAQ;IAClC,aAAa,CAAC,OAIb;QACC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED,UAAU,CAAC,SAAiB;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,yBAAyB,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,mBAAmB,CAAC,SAAiB;QACnC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED,cAAc,CAAC,OAAY;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,6BAA6B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;CACF;AApBD,wBAoBC","sourcesContent":["import { Resource } from '../Resource';\nimport { SellsyConnectionStatus } from '../../types/Interface/api/sellsy/SellsyConnectionStatus';\n\nexport class Sellsy extends Resource {\n oauthCallback(payload: {\n code: string;\n codeVerifier: string;\n idSociety: number;\n }): Promise<{ success: boolean; message: string }> {\n return this.axios.$post('/auth/sellsy/callback', payload);\n }\n\n disconnect(idSociety: number): Promise<{ success: boolean; message: string }> {\n return this.axios.$post('/auth/sellsy/disconnect', { idSociety });\n }\n\n getConnectionStatus(societyId: number): Promise<SellsyConnectionStatus> {\n return this.axios.$get('/auth/sellsy/status', { params: { societyId } });\n }\n\n createInvoices(payload: any): Promise<any> {\n return this.axios.$post('/connectors/sellsy/invoices', payload);\n }\n}\n"]}
|
|
@@ -10,7 +10,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.FormConnector = void 0;
|
|
13
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
14
13
|
const class_validator_1 = require("class-validator");
|
|
15
14
|
const class_transformer_1 = require("class-transformer");
|
|
16
15
|
const ConnectorType_1 = require("../Enum/ConnectorType");
|
|
@@ -18,73 +17,61 @@ class FormConnector {
|
|
|
18
17
|
}
|
|
19
18
|
exports.FormConnector = FormConnector;
|
|
20
19
|
__decorate([
|
|
21
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
22
20
|
(0, class_validator_1.IsOptional)(),
|
|
23
21
|
(0, class_validator_1.IsNumber)(),
|
|
24
22
|
__metadata("design:type", Number)
|
|
25
23
|
], FormConnector.prototype, "id", void 0);
|
|
26
24
|
__decorate([
|
|
27
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
28
25
|
(0, class_validator_1.IsOptional)(),
|
|
29
26
|
(0, class_validator_1.IsString)(),
|
|
30
27
|
__metadata("design:type", String)
|
|
31
28
|
], FormConnector.prototype, "username", void 0);
|
|
32
29
|
__decorate([
|
|
33
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
34
30
|
(0, class_validator_1.IsOptional)(),
|
|
35
31
|
(0, class_validator_1.IsString)(),
|
|
36
32
|
__metadata("design:type", String)
|
|
37
33
|
], FormConnector.prototype, "pass", void 0);
|
|
38
34
|
__decorate([
|
|
39
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
40
35
|
(0, class_validator_1.IsOptional)(),
|
|
41
36
|
(0, class_validator_1.IsString)(),
|
|
42
37
|
__metadata("design:type", String)
|
|
43
38
|
], FormConnector.prototype, "url", void 0);
|
|
44
39
|
__decorate([
|
|
45
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
46
40
|
(0, class_validator_1.IsOptional)(),
|
|
47
41
|
(0, class_validator_1.IsString)(),
|
|
48
42
|
__metadata("design:type", String)
|
|
49
43
|
], FormConnector.prototype, "token", void 0);
|
|
50
44
|
__decorate([
|
|
51
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
52
45
|
(0, class_validator_1.IsOptional)(),
|
|
53
46
|
(0, class_validator_1.IsString)(),
|
|
54
47
|
__metadata("design:type", String)
|
|
55
48
|
], FormConnector.prototype, "token2", void 0);
|
|
56
49
|
__decorate([
|
|
57
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
58
50
|
(0, class_validator_1.IsOptional)(),
|
|
59
51
|
(0, class_validator_1.IsString)(),
|
|
60
52
|
__metadata("design:type", String)
|
|
61
53
|
], FormConnector.prototype, "token3", void 0);
|
|
62
54
|
__decorate([
|
|
63
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
64
55
|
(0, class_validator_1.IsOptional)(),
|
|
65
56
|
(0, class_validator_1.IsString)(),
|
|
66
57
|
__metadata("design:type", String)
|
|
67
58
|
], FormConnector.prototype, "token4", void 0);
|
|
68
59
|
__decorate([
|
|
69
|
-
(0, swagger_1.ApiPropertyOptional)({ type: String, format: 'date-time' }),
|
|
70
60
|
(0, class_validator_1.IsOptional)(),
|
|
71
61
|
(0, class_validator_1.IsDate)(),
|
|
72
62
|
(0, class_transformer_1.Type)(() => Date),
|
|
73
63
|
__metadata("design:type", Date)
|
|
74
64
|
], FormConnector.prototype, "date", void 0);
|
|
75
65
|
__decorate([
|
|
76
|
-
(0, swagger_1.ApiProperty)({ enum: ConnectorType_1.ConnectorType }),
|
|
77
66
|
(0, class_validator_1.IsEnum)(ConnectorType_1.ConnectorType),
|
|
78
67
|
__metadata("design:type", Number)
|
|
79
68
|
], FormConnector.prototype, "idTypeConnector", void 0);
|
|
80
69
|
__decorate([
|
|
81
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
82
70
|
(0, class_validator_1.IsOptional)(),
|
|
83
71
|
(0, class_validator_1.IsNumber)(),
|
|
84
72
|
__metadata("design:type", Number)
|
|
85
73
|
], FormConnector.prototype, "idSociety", void 0);
|
|
86
74
|
__decorate([
|
|
87
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
88
75
|
(0, class_validator_1.IsOptional)(),
|
|
89
76
|
(0, class_validator_1.IsNumber)(),
|
|
90
77
|
__metadata("design:type", Number)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormConnector.js","sourceRoot":"","sources":["../../../../ts/types/Form/FormConnector.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"FormConnector.js","sourceRoot":"","sources":["../../../../ts/types/Form/FormConnector.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qDAAiF;AACjF,yDAAyC;AACzC,yDAAsD;AAEtD,MAAa,aAAa;CA4DzB;AA5DD,sCA4DC;AAxDC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yCACC;AAKZ;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACO;AAKlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACG;AAKd;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0CACE;AAKb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACI;AAKf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACK;AAKhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACK;AAKhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACK;AAMhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACV,IAAI;2CAAC;AAIZ;IADC,IAAA,wBAAM,EAAC,6BAAa,CAAC;;sDACS;AAK/B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACQ;AAKnB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACQ","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';\nimport { IsString, IsOptional, IsNumber, IsDate, IsEnum } from 'class-validator';\nimport { Type } from 'class-transformer';\nimport { ConnectorType } from '../Enum/ConnectorType';\n\nexport class FormConnector {\n // @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n id?: number;\n\n // @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n username?: string;\n\n // @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n pass?: string;\n\n // @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n url?: string;\n\n // @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n token?: string;\n\n // @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n token2?: string;\n\n // @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n token3?: string;\n\n // @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n token4?: string;\n\n // @ApiPropertyOptional({ type: String, format: 'date-time' })\n @IsOptional()\n @IsDate()\n @Type(() => Date)\n date?: Date;\n\n //@ApiProperty({ enum: ConnectorType })\n @IsEnum(ConnectorType)\n idTypeConnector: ConnectorType;\n\n // @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idSociety?: number;\n\n // @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n expiresIn?: number;\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Resource } from '../Resource';
|
|
2
|
+
import { SellsyConnectionStatus } from '../../types/Interface/api/sellsy/SellsyConnectionStatus';
|
|
3
|
+
export declare class Sellsy extends Resource {
|
|
4
|
+
oauthCallback(payload: {
|
|
5
|
+
code: string;
|
|
6
|
+
codeVerifier: string;
|
|
7
|
+
idSociety: number;
|
|
8
|
+
}): Promise<{
|
|
9
|
+
success: boolean;
|
|
10
|
+
message: string;
|
|
11
|
+
}>;
|
|
12
|
+
disconnect(idSociety: number): Promise<{
|
|
13
|
+
success: boolean;
|
|
14
|
+
message: string;
|
|
15
|
+
}>;
|
|
16
|
+
getConnectionStatus(societyId: number): Promise<SellsyConnectionStatus>;
|
|
17
|
+
createInvoices(payload: any): Promise<any>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=Sellsy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sellsy.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Sellsy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,yDAAyD,CAAC;AAEjG,qBAAa,MAAO,SAAQ,QAAQ;IAClC,aAAa,CAAC,OAAO,EAAE;QACrB,IAAI,EAAE,MAAM,CAAC;QACb,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,EAAE,MAAM,CAAC;KACnB,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAIlD,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IAI7E,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAIvE,cAAc,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;CAG3C"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Resource } from '../Resource';
|
|
2
|
+
export class Sellsy extends Resource {
|
|
3
|
+
oauthCallback(payload) {
|
|
4
|
+
return this.axios.$post('/auth/sellsy/callback', payload);
|
|
5
|
+
}
|
|
6
|
+
disconnect(idSociety) {
|
|
7
|
+
return this.axios.$post('/auth/sellsy/disconnect', { idSociety });
|
|
8
|
+
}
|
|
9
|
+
getConnectionStatus(societyId) {
|
|
10
|
+
return this.axios.$get('/auth/sellsy/status', { params: { societyId } });
|
|
11
|
+
}
|
|
12
|
+
createInvoices(payload) {
|
|
13
|
+
return this.axios.$post('/connectors/sellsy/invoices', payload);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=Sellsy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sellsy.js","sourceRoot":"","sources":["../../../../ts/api/resources/Sellsy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC,MAAM,OAAO,MAAO,SAAQ,QAAQ;IAClC,aAAa,CAAC,OAIb;QACC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED,UAAU,CAAC,SAAiB;QAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,yBAAyB,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,mBAAmB,CAAC,SAAiB;QACnC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED,cAAc,CAAC,OAAY;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,6BAA6B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport { SellsyConnectionStatus } from '../../types/Interface/api/sellsy/SellsyConnectionStatus';\n\nexport class Sellsy extends Resource {\n oauthCallback(payload: {\n code: string;\n codeVerifier: string;\n idSociety: number;\n }): Promise<{ success: boolean; message: string }> {\n return this.axios.$post('/auth/sellsy/callback', payload);\n }\n\n disconnect(idSociety: number): Promise<{ success: boolean; message: string }> {\n return this.axios.$post('/auth/sellsy/disconnect', { idSociety });\n }\n\n getConnectionStatus(societyId: number): Promise<SellsyConnectionStatus> {\n return this.axios.$get('/auth/sellsy/status', { params: { societyId } });\n }\n\n createInvoices(payload: any): Promise<any> {\n return this.axios.$post('/connectors/sellsy/invoices', payload);\n }\n}\n"]}
|
|
@@ -7,92 +7,91 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
11
10
|
import { IsString, IsOptional, IsNumber, IsDate, IsEnum } from 'class-validator';
|
|
12
11
|
import { Type } from 'class-transformer';
|
|
13
12
|
import { ConnectorType } from '../Enum/ConnectorType';
|
|
14
13
|
export class FormConnector {
|
|
14
|
+
// @ApiPropertyOptional()
|
|
15
15
|
id;
|
|
16
|
+
// @ApiPropertyOptional()
|
|
16
17
|
username;
|
|
18
|
+
// @ApiPropertyOptional()
|
|
17
19
|
pass;
|
|
20
|
+
// @ApiPropertyOptional()
|
|
18
21
|
url;
|
|
22
|
+
// @ApiPropertyOptional()
|
|
19
23
|
token;
|
|
24
|
+
// @ApiPropertyOptional()
|
|
20
25
|
token2;
|
|
26
|
+
// @ApiPropertyOptional()
|
|
21
27
|
token3;
|
|
28
|
+
// @ApiPropertyOptional()
|
|
22
29
|
token4;
|
|
30
|
+
// @ApiPropertyOptional({ type: String, format: 'date-time' })
|
|
23
31
|
date;
|
|
32
|
+
//@ApiProperty({ enum: ConnectorType })
|
|
24
33
|
idTypeConnector;
|
|
34
|
+
// @ApiPropertyOptional()
|
|
25
35
|
idSociety;
|
|
36
|
+
// @ApiPropertyOptional()
|
|
26
37
|
expiresIn;
|
|
27
38
|
}
|
|
28
39
|
__decorate([
|
|
29
|
-
ApiPropertyOptional(),
|
|
30
40
|
IsOptional(),
|
|
31
41
|
IsNumber(),
|
|
32
42
|
__metadata("design:type", Number)
|
|
33
43
|
], FormConnector.prototype, "id", void 0);
|
|
34
44
|
__decorate([
|
|
35
|
-
ApiPropertyOptional(),
|
|
36
45
|
IsOptional(),
|
|
37
46
|
IsString(),
|
|
38
47
|
__metadata("design:type", String)
|
|
39
48
|
], FormConnector.prototype, "username", void 0);
|
|
40
49
|
__decorate([
|
|
41
|
-
ApiPropertyOptional(),
|
|
42
50
|
IsOptional(),
|
|
43
51
|
IsString(),
|
|
44
52
|
__metadata("design:type", String)
|
|
45
53
|
], FormConnector.prototype, "pass", void 0);
|
|
46
54
|
__decorate([
|
|
47
|
-
ApiPropertyOptional(),
|
|
48
55
|
IsOptional(),
|
|
49
56
|
IsString(),
|
|
50
57
|
__metadata("design:type", String)
|
|
51
58
|
], FormConnector.prototype, "url", void 0);
|
|
52
59
|
__decorate([
|
|
53
|
-
ApiPropertyOptional(),
|
|
54
60
|
IsOptional(),
|
|
55
61
|
IsString(),
|
|
56
62
|
__metadata("design:type", String)
|
|
57
63
|
], FormConnector.prototype, "token", void 0);
|
|
58
64
|
__decorate([
|
|
59
|
-
ApiPropertyOptional(),
|
|
60
65
|
IsOptional(),
|
|
61
66
|
IsString(),
|
|
62
67
|
__metadata("design:type", String)
|
|
63
68
|
], FormConnector.prototype, "token2", void 0);
|
|
64
69
|
__decorate([
|
|
65
|
-
ApiPropertyOptional(),
|
|
66
70
|
IsOptional(),
|
|
67
71
|
IsString(),
|
|
68
72
|
__metadata("design:type", String)
|
|
69
73
|
], FormConnector.prototype, "token3", void 0);
|
|
70
74
|
__decorate([
|
|
71
|
-
ApiPropertyOptional(),
|
|
72
75
|
IsOptional(),
|
|
73
76
|
IsString(),
|
|
74
77
|
__metadata("design:type", String)
|
|
75
78
|
], FormConnector.prototype, "token4", void 0);
|
|
76
79
|
__decorate([
|
|
77
|
-
ApiPropertyOptional({ type: String, format: 'date-time' }),
|
|
78
80
|
IsOptional(),
|
|
79
81
|
IsDate(),
|
|
80
82
|
Type(() => Date),
|
|
81
83
|
__metadata("design:type", Date)
|
|
82
84
|
], FormConnector.prototype, "date", void 0);
|
|
83
85
|
__decorate([
|
|
84
|
-
ApiProperty({ enum: ConnectorType }),
|
|
85
86
|
IsEnum(ConnectorType),
|
|
86
87
|
__metadata("design:type", Number)
|
|
87
88
|
], FormConnector.prototype, "idTypeConnector", void 0);
|
|
88
89
|
__decorate([
|
|
89
|
-
ApiPropertyOptional(),
|
|
90
90
|
IsOptional(),
|
|
91
91
|
IsNumber(),
|
|
92
92
|
__metadata("design:type", Number)
|
|
93
93
|
], FormConnector.prototype, "idSociety", void 0);
|
|
94
94
|
__decorate([
|
|
95
|
-
ApiPropertyOptional(),
|
|
96
95
|
IsOptional(),
|
|
97
96
|
IsNumber(),
|
|
98
97
|
__metadata("design:type", Number)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormConnector.js","sourceRoot":"","sources":["../../../../ts/types/Form/FormConnector.ts"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"FormConnector.js","sourceRoot":"","sources":["../../../../ts/types/Form/FormConnector.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACjF,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,MAAM,OAAO,aAAa;IACxB,yBAAyB;IAGzB,EAAE,CAAU;IAEZ,yBAAyB;IAGzB,QAAQ,CAAU;IAElB,yBAAyB;IAGzB,IAAI,CAAU;IAEd,yBAAyB;IAGzB,GAAG,CAAU;IAEb,yBAAyB;IAGzB,KAAK,CAAU;IAEf,yBAAyB;IAGzB,MAAM,CAAU;IAEhB,yBAAyB;IAGzB,MAAM,CAAU;IAEhB,yBAAyB;IAGzB,MAAM,CAAU;IAEhB,8DAA8D;IAI9D,IAAI,CAAQ;IAEZ,uCAAuC;IAEvC,eAAe,CAAgB;IAE/B,yBAAyB;IAGzB,SAAS,CAAU;IAEnB,yBAAyB;IAGzB,SAAS,CAAU;CACpB;AAxDC;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;yCACC;AAKZ;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;+CACO;AAKlB;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;2CACG;AAKd;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;0CACE;AAKb;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;4CACI;AAKf;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;6CACK;AAKhB;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;6CACK;AAKhB;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;6CACK;AAMhB;IAHC,UAAU,EAAE;IACZ,MAAM,EAAE;IACR,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACV,IAAI;2CAAC;AAIZ;IADC,MAAM,CAAC,aAAa,CAAC;;sDACS;AAK/B;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;gDACQ;AAKnB;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;gDACQ","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';\nimport { IsString, IsOptional, IsNumber, IsDate, IsEnum } from 'class-validator';\nimport { Type } from 'class-transformer';\nimport { ConnectorType } from '../Enum/ConnectorType';\n\nexport class FormConnector {\n // @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n id?: number;\n\n // @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n username?: string;\n\n // @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n pass?: string;\n\n // @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n url?: string;\n\n // @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n token?: string;\n\n // @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n token2?: string;\n\n // @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n token3?: string;\n\n // @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n token4?: string;\n\n // @ApiPropertyOptional({ type: String, format: 'date-time' })\n @IsOptional()\n @IsDate()\n @Type(() => Date)\n date?: Date;\n\n //@ApiProperty({ enum: ConnectorType })\n @IsEnum(ConnectorType)\n idTypeConnector: ConnectorType;\n\n // @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idSociety?: number;\n\n // @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n expiresIn?: number;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.3.99-
|
|
3
|
+
"version": "1.3.99-3",
|
|
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",
|
|
@@ -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
|
+
}
|
|
@@ -4,62 +4,62 @@ import { Type } from 'class-transformer';
|
|
|
4
4
|
import { ConnectorType } from '../Enum/ConnectorType';
|
|
5
5
|
|
|
6
6
|
export class FormConnector {
|
|
7
|
-
@ApiPropertyOptional()
|
|
7
|
+
// @ApiPropertyOptional()
|
|
8
8
|
@IsOptional()
|
|
9
9
|
@IsNumber()
|
|
10
10
|
id?: number;
|
|
11
11
|
|
|
12
|
-
@ApiPropertyOptional()
|
|
12
|
+
// @ApiPropertyOptional()
|
|
13
13
|
@IsOptional()
|
|
14
14
|
@IsString()
|
|
15
15
|
username?: string;
|
|
16
16
|
|
|
17
|
-
@ApiPropertyOptional()
|
|
17
|
+
// @ApiPropertyOptional()
|
|
18
18
|
@IsOptional()
|
|
19
19
|
@IsString()
|
|
20
20
|
pass?: string;
|
|
21
21
|
|
|
22
|
-
@ApiPropertyOptional()
|
|
22
|
+
// @ApiPropertyOptional()
|
|
23
23
|
@IsOptional()
|
|
24
24
|
@IsString()
|
|
25
25
|
url?: string;
|
|
26
26
|
|
|
27
|
-
@ApiPropertyOptional()
|
|
27
|
+
// @ApiPropertyOptional()
|
|
28
28
|
@IsOptional()
|
|
29
29
|
@IsString()
|
|
30
30
|
token?: string;
|
|
31
31
|
|
|
32
|
-
@ApiPropertyOptional()
|
|
32
|
+
// @ApiPropertyOptional()
|
|
33
33
|
@IsOptional()
|
|
34
34
|
@IsString()
|
|
35
35
|
token2?: string;
|
|
36
36
|
|
|
37
|
-
@ApiPropertyOptional()
|
|
37
|
+
// @ApiPropertyOptional()
|
|
38
38
|
@IsOptional()
|
|
39
39
|
@IsString()
|
|
40
40
|
token3?: string;
|
|
41
41
|
|
|
42
|
-
@ApiPropertyOptional()
|
|
42
|
+
// @ApiPropertyOptional()
|
|
43
43
|
@IsOptional()
|
|
44
44
|
@IsString()
|
|
45
45
|
token4?: string;
|
|
46
46
|
|
|
47
|
-
@ApiPropertyOptional({ type: String, format: 'date-time' })
|
|
47
|
+
// @ApiPropertyOptional({ type: String, format: 'date-time' })
|
|
48
48
|
@IsOptional()
|
|
49
49
|
@IsDate()
|
|
50
50
|
@Type(() => Date)
|
|
51
51
|
date?: Date;
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
//@ApiProperty({ enum: ConnectorType })
|
|
54
54
|
@IsEnum(ConnectorType)
|
|
55
55
|
idTypeConnector: ConnectorType;
|
|
56
56
|
|
|
57
|
-
@ApiPropertyOptional()
|
|
57
|
+
// @ApiPropertyOptional()
|
|
58
58
|
@IsOptional()
|
|
59
59
|
@IsNumber()
|
|
60
60
|
idSociety?: number;
|
|
61
61
|
|
|
62
|
-
@ApiPropertyOptional()
|
|
62
|
+
// @ApiPropertyOptional()
|
|
63
63
|
@IsOptional()
|
|
64
64
|
@IsNumber()
|
|
65
65
|
expiresIn?: number;
|