@accon/connect 0.2.0 → 0.3.1
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/core/types/integration-event.type.d.ts +1 -1
- package/dist/core/types/order.type.d.ts +1 -0
- package/dist/logistics/foody/foody.order-output.js +6 -5
- package/dist/logistics/foody/foody.order-output.js.map +1 -1
- package/dist/order/accon/accon-webhook.config.d.ts +25 -0
- package/dist/order/accon/accon-webhook.config.js +27 -0
- package/dist/order/accon/accon-webhook.config.js.map +1 -0
- package/dist/order/accon/accon-webhook.order-output.d.ts +34 -0
- package/dist/order/accon/accon-webhook.order-output.js +314 -0
- package/dist/order/accon/accon-webhook.order-output.js.map +1 -0
- package/dist/order/accon/dto/accon-webhook/index.d.ts +1 -0
- package/dist/order/accon/dto/accon-webhook/index.js +18 -0
- package/dist/order/accon/dto/accon-webhook/index.js.map +1 -0
- package/dist/order/accon/dto/accon-webhook/webhook-body.dto.d.ts +107 -0
- package/dist/order/accon/dto/accon-webhook/webhook-body.dto.js +107 -0
- package/dist/order/accon/dto/accon-webhook/webhook-body.dto.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebhookBodyDto = exports.ProductDto = exports.ModifierDto = exports.StatusDto = exports.RatingDto = exports.PaymentDto = exports.UserDto = exports.StoreDto = exports.AddressDto = void 0;
|
|
4
|
+
class AddressDto {
|
|
5
|
+
address;
|
|
6
|
+
number;
|
|
7
|
+
complement;
|
|
8
|
+
city;
|
|
9
|
+
state;
|
|
10
|
+
zip;
|
|
11
|
+
latlng;
|
|
12
|
+
}
|
|
13
|
+
exports.AddressDto = AddressDto;
|
|
14
|
+
class StoreDto {
|
|
15
|
+
_id;
|
|
16
|
+
name;
|
|
17
|
+
address;
|
|
18
|
+
deliveryTime;
|
|
19
|
+
toGoTime;
|
|
20
|
+
details;
|
|
21
|
+
}
|
|
22
|
+
exports.StoreDto = StoreDto;
|
|
23
|
+
class UserDto {
|
|
24
|
+
_id;
|
|
25
|
+
name;
|
|
26
|
+
document;
|
|
27
|
+
email;
|
|
28
|
+
phone;
|
|
29
|
+
totalOrders;
|
|
30
|
+
}
|
|
31
|
+
exports.UserDto = UserDto;
|
|
32
|
+
class PaymentDto {
|
|
33
|
+
type;
|
|
34
|
+
online;
|
|
35
|
+
name;
|
|
36
|
+
cod;
|
|
37
|
+
pix;
|
|
38
|
+
externalVendorCode;
|
|
39
|
+
authorizationCode;
|
|
40
|
+
tid;
|
|
41
|
+
card;
|
|
42
|
+
operator;
|
|
43
|
+
refunded;
|
|
44
|
+
}
|
|
45
|
+
exports.PaymentDto = PaymentDto;
|
|
46
|
+
class RatingDto {
|
|
47
|
+
stars;
|
|
48
|
+
improvements;
|
|
49
|
+
notes;
|
|
50
|
+
reply;
|
|
51
|
+
}
|
|
52
|
+
exports.RatingDto = RatingDto;
|
|
53
|
+
class StatusDto {
|
|
54
|
+
name;
|
|
55
|
+
date;
|
|
56
|
+
obs;
|
|
57
|
+
}
|
|
58
|
+
exports.StatusDto = StatusDto;
|
|
59
|
+
class ModifierDto {
|
|
60
|
+
id;
|
|
61
|
+
name;
|
|
62
|
+
price;
|
|
63
|
+
quantity;
|
|
64
|
+
group;
|
|
65
|
+
externalVendorCode;
|
|
66
|
+
}
|
|
67
|
+
exports.ModifierDto = ModifierDto;
|
|
68
|
+
class ProductDto {
|
|
69
|
+
id;
|
|
70
|
+
name;
|
|
71
|
+
quantity;
|
|
72
|
+
modifiers;
|
|
73
|
+
notes;
|
|
74
|
+
total;
|
|
75
|
+
externalVendorCode;
|
|
76
|
+
}
|
|
77
|
+
exports.ProductDto = ProductDto;
|
|
78
|
+
class WebhookBodyDto {
|
|
79
|
+
_id;
|
|
80
|
+
network;
|
|
81
|
+
session_id;
|
|
82
|
+
sequential;
|
|
83
|
+
store;
|
|
84
|
+
user;
|
|
85
|
+
address;
|
|
86
|
+
delivery;
|
|
87
|
+
date;
|
|
88
|
+
deliveryTax;
|
|
89
|
+
discount;
|
|
90
|
+
subtotal;
|
|
91
|
+
total;
|
|
92
|
+
change;
|
|
93
|
+
payment;
|
|
94
|
+
voucher;
|
|
95
|
+
status;
|
|
96
|
+
canceled;
|
|
97
|
+
scheduled;
|
|
98
|
+
scheduledDate;
|
|
99
|
+
ip;
|
|
100
|
+
source;
|
|
101
|
+
rating;
|
|
102
|
+
notes;
|
|
103
|
+
document;
|
|
104
|
+
products;
|
|
105
|
+
}
|
|
106
|
+
exports.WebhookBodyDto = WebhookBodyDto;
|
|
107
|
+
//# sourceMappingURL=webhook-body.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook-body.dto.js","sourceRoot":"","sources":["../../../../../lib/order/accon/dto/accon-webhook/webhook-body.dto.ts"],"names":[],"mappings":";;;AAAA,MAAa,UAAU;IACrB,OAAO,CAAS;IAChB,MAAM,CAAS;IACf,UAAU,CAAU;IACpB,IAAI,CAAS;IACb,KAAK,CAAS;IACd,GAAG,CAAS;IACZ,MAAM,CAGJ;CACH;AAXD,gCAWC;AAED,MAAa,QAAQ;IACnB,GAAG,CAAS;IACZ,IAAI,CAAS;IACb,OAAO,CAAa;IACpB,YAAY,CAAS;IACrB,QAAQ,CAAS;IACjB,OAAO,CAML;CACH;AAbD,4BAaC;AAED,MAAa,OAAO;IAClB,GAAG,CAAS;IACZ,IAAI,CAAS;IACb,QAAQ,CAAU;IAClB,KAAK,CAAU;IACf,KAAK,CAAS;IACd,WAAW,CAAS;CACrB;AAPD,0BAOC;AAED,MAAa,UAAU;IACrB,IAAI,CAAgD;IACpD,MAAM,CAAU;IAChB,IAAI,CAAS;IACb,GAAG,CAAS;IACZ,GAAG,CAAU;IACb,kBAAkB,CAAU;IAC5B,iBAAiB,CAAU;IAC3B,GAAG,CAAU;IACb,IAAI,CAAU;IACd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