@flowio/api-types 0.0.203 → 0.0.205

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/index.d.ts CHANGED
@@ -3,7 +3,9 @@
3
3
  /// <reference path="generated/io.flow.apple.pay.v0.apple-pay.d.ts" />
4
4
  /// <reference path="generated/io.flow.ben.test.internal.v0.ben-test-internal.d.ts" />
5
5
  /// <reference path="generated/io.flow.billing.bank.account.v0.billing-bank-account.d.ts" />
6
- /// <reference path="generated/io.flow.billing.true.up.v0.billing-true-up.d.ts" />
6
+ /// <reference path="generated/io.flow.billing.csv.v0.billing-csv.d.ts" />
7
+ /// <reference path="generated/io.flow.billing.internal.v0.billing-internal.d.ts" />
8
+ /// <reference path="generated/io.flow.billing.reporting.csv.v0.billing-reporting-csv.d.ts" />
7
9
  /// <reference path="generated/io.flow.billing.v0.billing.d.ts" />
8
10
  /// <reference path="generated/io.flow.bitpay.v0.bitpay.d.ts" />
9
11
  /// <reference path="generated/io.flow.brickftp.v0.brickftp.d.ts" />
@@ -18,6 +20,7 @@
18
20
  /// <reference path="generated/io.flow.checkout.protocol.v0.checkout-protocol.d.ts" />
19
21
  /// <reference path="generated/io.flow.checkout.v0.checkout.d.ts" />
20
22
  /// <reference path="generated/io.flow.common.v0.common.d.ts" />
23
+ /// <reference path="generated/io.flow.consumer.invoice.v0.consumer-invoice.d.ts" />
21
24
  /// <reference path="generated/io.flow.content.internal.v0.content-internal.d.ts" />
22
25
  /// <reference path="generated/io.flow.crypto.v0.crypto.d.ts" />
23
26
  /// <reference path="generated/io.flow.currency.internal.v0.currency-internal.d.ts" />
@@ -38,6 +41,7 @@
38
41
  /// <reference path="generated/io.flow.harmonization.v0.harmonization.d.ts" />
39
42
  /// <reference path="generated/io.flow.internal.v0.api-internal.d.ts" />
40
43
  /// <reference path="generated/io.flow.inventory.v0.inventory.d.ts" />
44
+ /// <reference path="generated/io.flow.invoice.v0.invoice.d.ts" />
41
45
  /// <reference path="generated/io.flow.item.v0.item.d.ts" />
42
46
  /// <reference path="generated/io.flow.label.v0.label.d.ts" />
43
47
  /// <reference path="generated/io.flow.merchant.of.record.v0.merchant-of-record.d.ts" />
@@ -71,5 +75,6 @@
71
75
  /// <reference path="generated/io.flow.svb.v0.svb.d.ts" />
72
76
  /// <reference path="generated/io.flow.token.v0.token.d.ts" />
73
77
  /// <reference path="generated/io.flow.tracking.v0.tracking.d.ts" />
78
+ /// <reference path="generated/io.flow.trueup.v0.trueup.d.ts" />
74
79
  /// <reference path="generated/io.flow.units.v0.units.d.ts" />
75
80
  /// <reference path="generated/io.flow.v0.api.d.ts" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/api-types",
3
- "version": "0.0.203",
3
+ "version": "0.0.205",
4
4
  "description": "Global TypeScript typings for Flow Commerce API",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,5 +14,5 @@
14
14
  "scripts": {
15
15
  "generate": "apibuilder update && node scripts/generate-index.js"
16
16
  },
17
- "gitHead": "2eaa54ec47aea1e42dad859077feb3852172583c"
17
+ "gitHead": "edaa4ef26aa5601691b51a50d20d45ef9071e43e"
18
18
  }
@@ -1,148 +0,0 @@
1
- declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.enums {
2
- type TrueUpSurchargeType = 'fuel' | 'remote_area' | 'oversize' | 'duties_paid' | 'emergency' | 'peak' | 'address_correction';
3
- }
4
-
5
- declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.models {
6
- interface LabelBase {
7
- readonly 'amount': number;
8
- readonly 'weight': number;
9
- }
10
-
11
- interface LabelDestination {
12
- readonly 'country': string;
13
- }
14
-
15
- interface LabelInvoiceRequest {
16
- readonly 'id': string;
17
- readonly 'label': io.flow.billing.RESERVED_WORD_true.up.v0.models.TrueUpLabelSummary;
18
- readonly 'units': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelUnits;
19
- readonly 'base': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelBase;
20
- readonly 'surcharges': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurcharge[];
21
- readonly 'total': number;
22
- readonly 'destination': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelDestination;
23
- readonly 'metadata': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelMetadata;
24
- }
25
-
26
- interface LabelInvoiceResponseFile {
27
- readonly 'id': string;
28
- readonly 'url': string;
29
- readonly 'created_at': string;
30
- readonly 'result'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelInvoiceResponseFileResult;
31
- }
32
-
33
- interface LabelInvoiceResponseFileForm {
34
- readonly 'url': string;
35
- }
36
-
37
- interface LabelInvoiceResponseFileResult {
38
- readonly 'processed_at': string;
39
- readonly 'number_lines_successful': number;
40
- readonly 'number_lines_with_errors': number;
41
- readonly 'errors_url'?: string;
42
- }
43
-
44
- interface LabelInvoiceResponseForm {
45
- readonly 'id': string;
46
- readonly 'label_invoice_request_id': string;
47
- readonly 'units': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelResponseUnits;
48
- readonly 'base': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelBase;
49
- readonly 'surcharges': io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeForm;
50
- readonly 'total': number;
51
- }
52
-
53
- interface LabelMetadata {
54
- readonly 'ratecard': io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataRatecard;
55
- readonly 'weights': io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataWeights;
56
- }
57
-
58
- interface LabelResponseUnits {
59
- readonly 'currency': string;
60
- readonly 'weight': io.flow.units.v0.enums.UnitOfWeight;
61
- readonly 'length'?: io.flow.units.v0.enums.UnitOfLength;
62
- }
63
-
64
- interface LabelSurcharge {
65
- readonly 'amount': number;
66
- readonly 'type': io.flow.billing.RESERVED_WORD_true.up.v0.enums.TrueUpSurchargeType;
67
- readonly 'detail': io.flow.billing.RESERVED_WORD_true.up.v0.unions.LabelSurchargeDetail;
68
- }
69
-
70
- interface LabelSurchargeDetailFlat {
71
- readonly 'discriminator': 'flat';
72
- readonly 'placeholder'?: string;
73
- }
74
-
75
- interface LabelSurchargeDetailPerWeightUnit {
76
- readonly 'discriminator': 'per_weight_unit';
77
- readonly 'fee': number;
78
- }
79
-
80
- interface LabelSurchargeDetailPercentage {
81
- readonly 'discriminator': 'percentage';
82
- readonly 'percentage': number;
83
- }
84
-
85
- interface LabelSurchargeForm {
86
- readonly 'fuel'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
87
- readonly 'remote_area'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
88
- readonly 'oversize'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
89
- readonly 'duties_paid'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
90
- readonly 'emergency'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
91
- readonly 'peak'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
92
- readonly 'address_correction'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeSingleForm;
93
- }
94
-
95
- interface LabelSurchargeSingleForm {
96
- readonly 'amount': number;
97
- readonly 'percentage'?: number;
98
- readonly 'fee_per_weight_unit'?: number;
99
- }
100
-
101
- interface LabelUnits {
102
- readonly 'currency': string;
103
- readonly 'weight': io.flow.units.v0.enums.UnitOfWeight;
104
- readonly 'length': io.flow.units.v0.enums.UnitOfLength;
105
- }
106
-
107
- interface MetadataProposition {
108
- readonly 'shipping_method': io.flow.billing.RESERVED_WORD_true.up.v0.models.ShippingMethodReference;
109
- readonly 'name': string;
110
- }
111
-
112
- interface MetadataRatecard {
113
- readonly 'id': string;
114
- readonly 'proposition': io.flow.billing.RESERVED_WORD_true.up.v0.models.MetadataProposition;
115
- }
116
-
117
- interface MetadataWeights {
118
- readonly 'dead'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.WeightsDead;
119
- readonly 'dimensional'?: io.flow.billing.RESERVED_WORD_true.up.v0.models.WeightsDimensional;
120
- }
121
-
122
- interface ShippingMethodReference {
123
- readonly 'id': string;
124
- }
125
-
126
- interface TrueUpLabelSummary {
127
- readonly 'id': string;
128
- readonly 'carrier_service_id': string;
129
- readonly 'carrier_tracking_number': string;
130
- readonly 'flow_tracking_number': string;
131
- readonly 'created_at': string;
132
- }
133
-
134
- interface WeightsDead {
135
- readonly 'weight': number;
136
- }
137
-
138
- interface WeightsDimensional {
139
- readonly 'weight': number;
140
- readonly 'length': number;
141
- readonly 'width': number;
142
- readonly 'height': number;
143
- }
144
- }
145
-
146
- declare namespace io.flow.billing.RESERVED_WORD_true.up.v0.unions {
147
- type LabelSurchargeDetail = (io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeDetailFlat | io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeDetailPercentage | io.flow.billing.RESERVED_WORD_true.up.v0.models.LabelSurchargeDetailPerWeightUnit);
148
- }