@zauru-sdk/types 1.0.5
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/CHANGELOG.md +8 -0
- package/LICENCE.md +11 -0
- package/dist/Custom.types.d.ts +372 -0
- package/dist/Custom.types.js +1 -0
- package/dist/GraphQL.types.d.ts +601 -0
- package/dist/GraphQL.types.js +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/package.json +23 -0
- package/src/Custom.types.ts +432 -0
- package/src/GraphQL.types.ts +696 -0
- package/src/index.ts +2 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,601 @@
|
|
|
1
|
+
export type FormDocumentType = "payee" | "item" | "bundle" | "entry" | "shipment" | "invoice" | "credit_note" | "payment" | "purchase_order" | "discharge" | "charge" | "reception" | "case" | "piecework" | "payroll_run" | "payroll" | "personal_time_off_request" | "work_contract" | "work_contract_termination" | "incident" | "item_category" | "employee" | "contract";
|
|
2
|
+
export type FormFieldType = "section" | "zauru_data" | "text" | "multi_line_text" | "number" | "percentage" | "email" | "url" | "yes_no" | "date" | "hour" | "country" | "currency" | "gt_departamentos" | "gt_municipios" | "single_select_options" | "multi_select_options" | "image" | "pdf" | "file" | "fixed_columns_table" | "fixed_rows_table";
|
|
3
|
+
export type ReceptionDetailsGraphQL = {
|
|
4
|
+
id: number;
|
|
5
|
+
purchase_order_detail_id: number;
|
|
6
|
+
quantity: number;
|
|
7
|
+
item_id: number;
|
|
8
|
+
lot_delivered_quantity: number;
|
|
9
|
+
lot_description: string;
|
|
10
|
+
lot_expire: string;
|
|
11
|
+
lot_name: string;
|
|
12
|
+
};
|
|
13
|
+
export type ReceptionGraphQL = {
|
|
14
|
+
id: number;
|
|
15
|
+
received: boolean;
|
|
16
|
+
voided: boolean;
|
|
17
|
+
received_at: string;
|
|
18
|
+
purchase_order_id: number;
|
|
19
|
+
needs_transit: boolean;
|
|
20
|
+
invoice_number: string;
|
|
21
|
+
memo: string;
|
|
22
|
+
agency_id: number;
|
|
23
|
+
entity_id: number;
|
|
24
|
+
reception_details: ReceptionDetailsGraphQL[];
|
|
25
|
+
};
|
|
26
|
+
export type PurchaseOrderDetailsGraphQL = {
|
|
27
|
+
item_id: number;
|
|
28
|
+
id: number;
|
|
29
|
+
reference: string;
|
|
30
|
+
unit_cost: number;
|
|
31
|
+
booked_quantity: number;
|
|
32
|
+
delivered_quantity: number;
|
|
33
|
+
tag_id: number;
|
|
34
|
+
item: ItemGraphQL;
|
|
35
|
+
};
|
|
36
|
+
export type LotStockGraphQL = {
|
|
37
|
+
id: number;
|
|
38
|
+
available: number;
|
|
39
|
+
incoming: number;
|
|
40
|
+
outgoing: number;
|
|
41
|
+
agency_id: number;
|
|
42
|
+
lot_id: number;
|
|
43
|
+
lot: LotGraphQL;
|
|
44
|
+
};
|
|
45
|
+
export type LotGraphQL = {
|
|
46
|
+
id: number;
|
|
47
|
+
name: string;
|
|
48
|
+
description: string;
|
|
49
|
+
item_id: number;
|
|
50
|
+
expires: string;
|
|
51
|
+
lot_stocks: LotStockGraphQL[];
|
|
52
|
+
};
|
|
53
|
+
export type MovementGraphQL = {
|
|
54
|
+
id: number;
|
|
55
|
+
serial_id: string;
|
|
56
|
+
item_id: number;
|
|
57
|
+
booked_quantity: number;
|
|
58
|
+
delivered_quantity: number;
|
|
59
|
+
reference: string;
|
|
60
|
+
lot_id: number;
|
|
61
|
+
lot: LotGraphQL;
|
|
62
|
+
};
|
|
63
|
+
export type ShipmentGraphQL = {
|
|
64
|
+
id: number;
|
|
65
|
+
zid: number;
|
|
66
|
+
id_number: string;
|
|
67
|
+
reference: string;
|
|
68
|
+
planned_delivery: string;
|
|
69
|
+
agency_from_id: number;
|
|
70
|
+
agency_to_id: number;
|
|
71
|
+
transporter_id: number;
|
|
72
|
+
created_at: string;
|
|
73
|
+
needs_transport: boolean;
|
|
74
|
+
payee_id: number;
|
|
75
|
+
income: boolean;
|
|
76
|
+
booker_id: number;
|
|
77
|
+
shipped: boolean;
|
|
78
|
+
shipper_id: number;
|
|
79
|
+
delivered: boolean;
|
|
80
|
+
delivered_at: string;
|
|
81
|
+
voided: boolean;
|
|
82
|
+
returned: boolean;
|
|
83
|
+
memo: string;
|
|
84
|
+
movements: MovementGraphQL[];
|
|
85
|
+
};
|
|
86
|
+
export type ShipmentPurchaseOrderGraphQL = {
|
|
87
|
+
shipment_id: number;
|
|
88
|
+
shipment: ShipmentGraphQL;
|
|
89
|
+
};
|
|
90
|
+
export type TaggingGraphQL = {
|
|
91
|
+
id: number;
|
|
92
|
+
tag_id: number;
|
|
93
|
+
taggeable_id: number;
|
|
94
|
+
taggeable_type: string;
|
|
95
|
+
};
|
|
96
|
+
export type PurchaseOrderGraphQL = {
|
|
97
|
+
id: number;
|
|
98
|
+
created_at: string;
|
|
99
|
+
due: string;
|
|
100
|
+
id_number: string;
|
|
101
|
+
memo: string;
|
|
102
|
+
authorized: boolean;
|
|
103
|
+
payee_id: number;
|
|
104
|
+
purchaser_id: number;
|
|
105
|
+
origin: string;
|
|
106
|
+
transport_type: string;
|
|
107
|
+
reference: string;
|
|
108
|
+
issue_date: string;
|
|
109
|
+
shipping_date: string;
|
|
110
|
+
charge_term_id: number;
|
|
111
|
+
agency_id: number;
|
|
112
|
+
currency_id: number;
|
|
113
|
+
incoterm_id: number;
|
|
114
|
+
entity_id: number;
|
|
115
|
+
incoterm_destination: string;
|
|
116
|
+
voided: boolean;
|
|
117
|
+
received: boolean;
|
|
118
|
+
taxable: boolean;
|
|
119
|
+
import: boolean;
|
|
120
|
+
discount: number;
|
|
121
|
+
other_charges: number;
|
|
122
|
+
delivery_date: string;
|
|
123
|
+
webapp_table_rowables?: {
|
|
124
|
+
webapp_rows?: {
|
|
125
|
+
data?: {
|
|
126
|
+
[key: string]: any;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
purchase_order_details: PurchaseOrderDetailsGraphQL[];
|
|
131
|
+
lots: LotGraphQL[];
|
|
132
|
+
receptions: ReceptionGraphQL[];
|
|
133
|
+
shipment_purchase_orders: ShipmentPurchaseOrderGraphQL[];
|
|
134
|
+
taggings: TaggingGraphQL[];
|
|
135
|
+
};
|
|
136
|
+
export type TagGraphQL = {
|
|
137
|
+
id: number;
|
|
138
|
+
zid: number;
|
|
139
|
+
name: string;
|
|
140
|
+
description: string;
|
|
141
|
+
};
|
|
142
|
+
export type DocumentAutomaticNumberGraphQL = {
|
|
143
|
+
id: number;
|
|
144
|
+
active: boolean;
|
|
145
|
+
variable_doc_number: number;
|
|
146
|
+
variable_doc_number_digits: number;
|
|
147
|
+
fixed_doc_number: string;
|
|
148
|
+
field_for_doc_number: string;
|
|
149
|
+
};
|
|
150
|
+
export type PayeeGraphQL = {
|
|
151
|
+
id: number;
|
|
152
|
+
id_number: string;
|
|
153
|
+
name: string;
|
|
154
|
+
tin: string;
|
|
155
|
+
email: string;
|
|
156
|
+
phone: string;
|
|
157
|
+
active: boolean;
|
|
158
|
+
service_provider: boolean;
|
|
159
|
+
payee_category_id: number;
|
|
160
|
+
buyer: boolean;
|
|
161
|
+
vendor: boolean;
|
|
162
|
+
currency_id: number;
|
|
163
|
+
allowed_payment_terms: AllowedPaymentTermGraphQL[];
|
|
164
|
+
address_line_1: string;
|
|
165
|
+
};
|
|
166
|
+
export type WebAppRowGraphQL<T> = {
|
|
167
|
+
id: number;
|
|
168
|
+
data: T;
|
|
169
|
+
created_at: string;
|
|
170
|
+
};
|
|
171
|
+
export type PayeeCategoryGraphQL = {
|
|
172
|
+
id: number;
|
|
173
|
+
name: string;
|
|
174
|
+
notes: string;
|
|
175
|
+
vendor: boolean;
|
|
176
|
+
payees_count: number;
|
|
177
|
+
price_list_id: number;
|
|
178
|
+
price_list: PriceListGraphQL;
|
|
179
|
+
payees: PayeeGraphQL[];
|
|
180
|
+
};
|
|
181
|
+
export type ItemCategoryGraphQL = {
|
|
182
|
+
id: number;
|
|
183
|
+
name: string;
|
|
184
|
+
notes: string;
|
|
185
|
+
items: ItemGraphQL[];
|
|
186
|
+
items_count: number;
|
|
187
|
+
item_super_category_id: number;
|
|
188
|
+
color: string;
|
|
189
|
+
stocks_only_integer: boolean;
|
|
190
|
+
};
|
|
191
|
+
export type ItemSuperCategoryGraphQL = {
|
|
192
|
+
id: number;
|
|
193
|
+
name: string;
|
|
194
|
+
description: string;
|
|
195
|
+
item_categories: ItemCategoryGraphQL[];
|
|
196
|
+
};
|
|
197
|
+
export type StockGraphQL = {
|
|
198
|
+
id: number;
|
|
199
|
+
available: number;
|
|
200
|
+
incoming: number;
|
|
201
|
+
outgoing: number;
|
|
202
|
+
};
|
|
203
|
+
export type ItemGraphQL = {
|
|
204
|
+
id: number;
|
|
205
|
+
name: string;
|
|
206
|
+
stocks_only_integer: boolean;
|
|
207
|
+
code: string;
|
|
208
|
+
item_category_id: number;
|
|
209
|
+
measurement_unit: string;
|
|
210
|
+
description: string;
|
|
211
|
+
active: boolean;
|
|
212
|
+
color: string;
|
|
213
|
+
stockable: boolean;
|
|
214
|
+
product_type: number;
|
|
215
|
+
sellable: boolean;
|
|
216
|
+
quotable: boolean;
|
|
217
|
+
ecommerce: boolean;
|
|
218
|
+
purchasable: boolean;
|
|
219
|
+
weight: number;
|
|
220
|
+
pays_vat: boolean;
|
|
221
|
+
stocks: StockGraphQL[];
|
|
222
|
+
item_category: ItemCategoryGraphQL;
|
|
223
|
+
};
|
|
224
|
+
export type ConsolidateGraphQL = {
|
|
225
|
+
id: number;
|
|
226
|
+
id_number: string;
|
|
227
|
+
created_at: string;
|
|
228
|
+
name: string;
|
|
229
|
+
purchase_orders: PurchaseOrderGraphQL[];
|
|
230
|
+
};
|
|
231
|
+
export type EmployeeGraphQL = {
|
|
232
|
+
id: number;
|
|
233
|
+
name: string;
|
|
234
|
+
entity_id: number;
|
|
235
|
+
agency_id: number;
|
|
236
|
+
user_id: number;
|
|
237
|
+
email: string;
|
|
238
|
+
};
|
|
239
|
+
export type BundleDetailsGraphQL = {
|
|
240
|
+
id: number;
|
|
241
|
+
item_id: number;
|
|
242
|
+
quantity: number;
|
|
243
|
+
_destroy?: boolean;
|
|
244
|
+
};
|
|
245
|
+
export type BundleGraphQL = {
|
|
246
|
+
id: number;
|
|
247
|
+
code: string;
|
|
248
|
+
description: string;
|
|
249
|
+
name: string;
|
|
250
|
+
updated_at: string;
|
|
251
|
+
item_category_id: number;
|
|
252
|
+
image5: string;
|
|
253
|
+
bundle_details_count: number;
|
|
254
|
+
force_as_service_for_document_external_storage_service: boolean;
|
|
255
|
+
bundle_details: BundleDetailsGraphQL[];
|
|
256
|
+
};
|
|
257
|
+
export type InvoiceDetailsGraphQL = {
|
|
258
|
+
id: number;
|
|
259
|
+
bundle_id: number;
|
|
260
|
+
item_bundle_name: string;
|
|
261
|
+
item_bundle_description: string;
|
|
262
|
+
item_id: number;
|
|
263
|
+
price: number;
|
|
264
|
+
unit_price: number;
|
|
265
|
+
quantity: number;
|
|
266
|
+
_destroy?: boolean;
|
|
267
|
+
};
|
|
268
|
+
export type TaggingInvoiceGraphQL = {
|
|
269
|
+
id: number;
|
|
270
|
+
invoice_id: number;
|
|
271
|
+
tag_id: number;
|
|
272
|
+
};
|
|
273
|
+
export type InvoiceGraphQL = {
|
|
274
|
+
id: number;
|
|
275
|
+
zid: number;
|
|
276
|
+
id_number: string;
|
|
277
|
+
order_number: string;
|
|
278
|
+
invoice_number: string;
|
|
279
|
+
reference: string;
|
|
280
|
+
date: string;
|
|
281
|
+
paid: boolean;
|
|
282
|
+
subtotal: number;
|
|
283
|
+
currency_id: number;
|
|
284
|
+
total: number;
|
|
285
|
+
payee_id: number;
|
|
286
|
+
seller_id: number;
|
|
287
|
+
memo: string;
|
|
288
|
+
payment_term_id: number;
|
|
289
|
+
issued: boolean;
|
|
290
|
+
agency_id: number;
|
|
291
|
+
invoice_details: InvoiceDetailsGraphQL[];
|
|
292
|
+
payee: PayeeGraphQL;
|
|
293
|
+
submission_invoices: SubmissionInvoicesGraphQL[];
|
|
294
|
+
tagging_invoices: TaggingInvoiceGraphQL[];
|
|
295
|
+
};
|
|
296
|
+
export type FormFieldOptionsGraphQL = {
|
|
297
|
+
id: number;
|
|
298
|
+
label: string;
|
|
299
|
+
position: number;
|
|
300
|
+
value: string;
|
|
301
|
+
};
|
|
302
|
+
export type FormFieldTableHeaderGraphQL = {
|
|
303
|
+
id: number;
|
|
304
|
+
name: string;
|
|
305
|
+
cell_type: "text" | "multi_line_text" | "number" | "yes_no";
|
|
306
|
+
position: number;
|
|
307
|
+
};
|
|
308
|
+
export type FormFieldGraphQL = {
|
|
309
|
+
id: number;
|
|
310
|
+
form_id: number;
|
|
311
|
+
name: string;
|
|
312
|
+
field_type: FormFieldType;
|
|
313
|
+
hint: string;
|
|
314
|
+
required: boolean;
|
|
315
|
+
default_value: string;
|
|
316
|
+
position: number;
|
|
317
|
+
print_var_name: string;
|
|
318
|
+
settings_form_field_options: Partial<FormFieldOptionsGraphQL>[];
|
|
319
|
+
settings_form_field_table_headers: Partial<FormFieldTableHeaderGraphQL>[];
|
|
320
|
+
};
|
|
321
|
+
export type FormSubmissionValueGraphQL = {
|
|
322
|
+
id: number;
|
|
323
|
+
form_field_id: number;
|
|
324
|
+
groups_path: string;
|
|
325
|
+
value: string;
|
|
326
|
+
form_submission_id: number;
|
|
327
|
+
settings_form_field: FormFieldGraphQL;
|
|
328
|
+
};
|
|
329
|
+
export type FormSubmissionGraphQL = {
|
|
330
|
+
id: number;
|
|
331
|
+
zid: number;
|
|
332
|
+
reference: string;
|
|
333
|
+
version: number;
|
|
334
|
+
settings_form_submission_values: FormSubmissionValueGraphQL[];
|
|
335
|
+
settings_form: FormGraphQL;
|
|
336
|
+
created_at: string;
|
|
337
|
+
form_id: number;
|
|
338
|
+
id_number: string;
|
|
339
|
+
voided: boolean;
|
|
340
|
+
user_id: number;
|
|
341
|
+
};
|
|
342
|
+
export type SubmissionInvoicesGraphQL = {
|
|
343
|
+
id: number;
|
|
344
|
+
invoice_id: number;
|
|
345
|
+
form_submission_id: number;
|
|
346
|
+
settings_form_submission: FormSubmissionGraphQL;
|
|
347
|
+
invoice: InvoiceGraphQL;
|
|
348
|
+
created_at: string;
|
|
349
|
+
};
|
|
350
|
+
export type SubmissionCasesGraphQL = {
|
|
351
|
+
id: number;
|
|
352
|
+
case_id: number;
|
|
353
|
+
form_submission_id: number;
|
|
354
|
+
settings_form_submission: FormSubmissionGraphQL;
|
|
355
|
+
case: CaseGraphQL;
|
|
356
|
+
};
|
|
357
|
+
export type FormGraphQL = {
|
|
358
|
+
id: number;
|
|
359
|
+
zid: number;
|
|
360
|
+
version: number;
|
|
361
|
+
document_type: FormDocumentType;
|
|
362
|
+
active: boolean;
|
|
363
|
+
name: string;
|
|
364
|
+
description: string;
|
|
365
|
+
settings_form_fields: Partial<FormFieldGraphQL>[];
|
|
366
|
+
};
|
|
367
|
+
export type PriceListGraphQL = {
|
|
368
|
+
id: number;
|
|
369
|
+
active: boolean;
|
|
370
|
+
name: string;
|
|
371
|
+
description: string;
|
|
372
|
+
client_exclusive: boolean;
|
|
373
|
+
payee_categories: PayeeCategoryGraphQL[];
|
|
374
|
+
};
|
|
375
|
+
export type CurrencyGraphQL = {
|
|
376
|
+
id: number;
|
|
377
|
+
name: string;
|
|
378
|
+
prefix: string;
|
|
379
|
+
code: string;
|
|
380
|
+
country: string;
|
|
381
|
+
plural_name: string;
|
|
382
|
+
};
|
|
383
|
+
export type SuggestedPriceGraphQL = {
|
|
384
|
+
id: number;
|
|
385
|
+
current: boolean;
|
|
386
|
+
currency_id: number;
|
|
387
|
+
amount: number;
|
|
388
|
+
bundle_id: number;
|
|
389
|
+
item_id: number;
|
|
390
|
+
notes: string;
|
|
391
|
+
price_list_id: number;
|
|
392
|
+
flexible_price: boolean;
|
|
393
|
+
item: ItemGraphQL;
|
|
394
|
+
price_list: PriceListGraphQL;
|
|
395
|
+
};
|
|
396
|
+
export type AllowedPaymentTermGraphQL = {
|
|
397
|
+
id: number;
|
|
398
|
+
payee_category_id: number;
|
|
399
|
+
payment_term_id: number;
|
|
400
|
+
};
|
|
401
|
+
export type PaymentTermGraphQL = {
|
|
402
|
+
id: number;
|
|
403
|
+
active: boolean;
|
|
404
|
+
memo: string;
|
|
405
|
+
name: string;
|
|
406
|
+
applicable_to_uncategorized_payees: boolean;
|
|
407
|
+
account_from_id: number;
|
|
408
|
+
account_to_id: number;
|
|
409
|
+
allowed_payment_terms: AllowedPaymentTermGraphQL[];
|
|
410
|
+
};
|
|
411
|
+
export type CaseInvoiceGraphQL = {
|
|
412
|
+
invoice: InvoiceGraphQL;
|
|
413
|
+
case: CaseGraphQL;
|
|
414
|
+
};
|
|
415
|
+
export type CaseSupplyGraphQL = {
|
|
416
|
+
id: number;
|
|
417
|
+
quantity: number;
|
|
418
|
+
item_id: number;
|
|
419
|
+
};
|
|
420
|
+
export type CaseGraphQL = {
|
|
421
|
+
id: number;
|
|
422
|
+
id_number: string;
|
|
423
|
+
reference: string;
|
|
424
|
+
serial_id: number;
|
|
425
|
+
critical: boolean;
|
|
426
|
+
date: string;
|
|
427
|
+
client: PayeeGraphQL;
|
|
428
|
+
closing_expected_at: string;
|
|
429
|
+
contact_method_id: number;
|
|
430
|
+
symptom: string;
|
|
431
|
+
solution: string;
|
|
432
|
+
warranty: boolean;
|
|
433
|
+
courtesy: boolean;
|
|
434
|
+
memo: string;
|
|
435
|
+
closed: boolean;
|
|
436
|
+
closed_at: string;
|
|
437
|
+
seller_id: number;
|
|
438
|
+
closer_id: number;
|
|
439
|
+
client_id: number;
|
|
440
|
+
case_supplies: CaseSupplyGraphQL[];
|
|
441
|
+
case_invoices: CaseInvoiceGraphQL[];
|
|
442
|
+
};
|
|
443
|
+
export type OauthProfile = {
|
|
444
|
+
id: number;
|
|
445
|
+
uid: number;
|
|
446
|
+
username: string;
|
|
447
|
+
name: string;
|
|
448
|
+
time_zone: string;
|
|
449
|
+
mobile_phone: string;
|
|
450
|
+
admin: boolean;
|
|
451
|
+
selected_entity: number;
|
|
452
|
+
selected_entity_name: string;
|
|
453
|
+
selected_entity_logo: string;
|
|
454
|
+
selected_entity_role: number;
|
|
455
|
+
employee_id: number;
|
|
456
|
+
crm_admin: boolean;
|
|
457
|
+
crm_supervisor: boolean;
|
|
458
|
+
crm_user: boolean;
|
|
459
|
+
currency_id: number;
|
|
460
|
+
currency_name: string;
|
|
461
|
+
currency_prefix: string;
|
|
462
|
+
api_key: string;
|
|
463
|
+
scope: string;
|
|
464
|
+
email: string;
|
|
465
|
+
};
|
|
466
|
+
export type AgencyGraphQL = {
|
|
467
|
+
id: number;
|
|
468
|
+
zid: number;
|
|
469
|
+
active: boolean;
|
|
470
|
+
ean13: string;
|
|
471
|
+
name: string;
|
|
472
|
+
employee_id: number | null;
|
|
473
|
+
updater_id: number;
|
|
474
|
+
entity_id: number;
|
|
475
|
+
virtual: boolean;
|
|
476
|
+
virtual_type: string | null;
|
|
477
|
+
warehouse: boolean;
|
|
478
|
+
point_of_sale: boolean;
|
|
479
|
+
workshop: boolean;
|
|
480
|
+
factory: boolean;
|
|
481
|
+
contact: string;
|
|
482
|
+
city: string;
|
|
483
|
+
address_line_1: string;
|
|
484
|
+
address_line_2: string;
|
|
485
|
+
phone: string;
|
|
486
|
+
notes: string;
|
|
487
|
+
created_at: string;
|
|
488
|
+
updated_at: string;
|
|
489
|
+
price_list_id: number | null;
|
|
490
|
+
quote: boolean;
|
|
491
|
+
ecommerce: boolean;
|
|
492
|
+
external_storage_service_name: string;
|
|
493
|
+
agency_category_id: number | null;
|
|
494
|
+
};
|
|
495
|
+
interface Logo {
|
|
496
|
+
url: null | string;
|
|
497
|
+
thumb: {
|
|
498
|
+
url: null | string;
|
|
499
|
+
};
|
|
500
|
+
standard: {
|
|
501
|
+
url: null | string;
|
|
502
|
+
};
|
|
503
|
+
header: {
|
|
504
|
+
url: null | string;
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
export type EntityGraphQL = {
|
|
508
|
+
id: number;
|
|
509
|
+
name: string;
|
|
510
|
+
tin: string;
|
|
511
|
+
country: string;
|
|
512
|
+
currency_id: number;
|
|
513
|
+
entity_type_id: number;
|
|
514
|
+
industry: string;
|
|
515
|
+
web: string;
|
|
516
|
+
notes: string;
|
|
517
|
+
vat: number;
|
|
518
|
+
vat_included: boolean;
|
|
519
|
+
logo: Logo;
|
|
520
|
+
logo_2: Logo;
|
|
521
|
+
created_at: string;
|
|
522
|
+
updated_at: string;
|
|
523
|
+
distributor: number;
|
|
524
|
+
costing_method: string;
|
|
525
|
+
address: string;
|
|
526
|
+
state: string;
|
|
527
|
+
city: string;
|
|
528
|
+
income_tax: number;
|
|
529
|
+
report_logo: Logo;
|
|
530
|
+
distributor_contract_id: number | null;
|
|
531
|
+
producer_contract_id: number | null;
|
|
532
|
+
legal_representative_name: string | null;
|
|
533
|
+
legal_representative_identification: string | null;
|
|
534
|
+
legal_representative_birthday: string | null;
|
|
535
|
+
legal_representative_gender: boolean;
|
|
536
|
+
legal_representative_marital_status: string | null;
|
|
537
|
+
legal_representative_occupation: string | null;
|
|
538
|
+
legal_representative_nationality: string | null;
|
|
539
|
+
exporter_code: string | null;
|
|
540
|
+
};
|
|
541
|
+
export type MembershipGraphQL = {
|
|
542
|
+
id: number;
|
|
543
|
+
active: boolean;
|
|
544
|
+
current: boolean;
|
|
545
|
+
reference: string;
|
|
546
|
+
starts: string;
|
|
547
|
+
expires: string;
|
|
548
|
+
eternal: boolean;
|
|
549
|
+
entity_id: number;
|
|
550
|
+
notes: string;
|
|
551
|
+
created_at: string;
|
|
552
|
+
updated_at: string;
|
|
553
|
+
licenses_count: number;
|
|
554
|
+
entity: EntityGraphQL;
|
|
555
|
+
};
|
|
556
|
+
export type ProfileGraphQL = {
|
|
557
|
+
id: number;
|
|
558
|
+
email: string;
|
|
559
|
+
active: boolean;
|
|
560
|
+
admin: boolean;
|
|
561
|
+
name: string;
|
|
562
|
+
address: null | string;
|
|
563
|
+
mobile_phone: string;
|
|
564
|
+
birthday: null | string;
|
|
565
|
+
gender: boolean;
|
|
566
|
+
notes: null | string;
|
|
567
|
+
time_zone: string;
|
|
568
|
+
language: string;
|
|
569
|
+
selected_entity_id: number;
|
|
570
|
+
created_at: string;
|
|
571
|
+
updated_at: string;
|
|
572
|
+
authentication_token: string;
|
|
573
|
+
provider: string;
|
|
574
|
+
provider_token: string;
|
|
575
|
+
};
|
|
576
|
+
export type VariableGraphQL = {
|
|
577
|
+
id: number;
|
|
578
|
+
name: string;
|
|
579
|
+
value: string;
|
|
580
|
+
kind: string;
|
|
581
|
+
user_id: number | null;
|
|
582
|
+
entity_id: number | null;
|
|
583
|
+
description: string;
|
|
584
|
+
creator: string;
|
|
585
|
+
created_at: string;
|
|
586
|
+
updated_at: string;
|
|
587
|
+
};
|
|
588
|
+
export type WebAppTableGraphQL = {
|
|
589
|
+
id: number;
|
|
590
|
+
zid: number;
|
|
591
|
+
entity_id: number;
|
|
592
|
+
name: string;
|
|
593
|
+
structure: {
|
|
594
|
+
[key: string]: string;
|
|
595
|
+
};
|
|
596
|
+
creator_id: number;
|
|
597
|
+
updater_id: number;
|
|
598
|
+
created_at: string;
|
|
599
|
+
updated_at: string;
|
|
600
|
+
};
|
|
601
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@zauru-sdk/types",
|
|
3
|
+
"version": "1.0.5",
|
|
4
|
+
"description": "Estructuras de Zauru, tipado de modelos y modelos personalizados.",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "tsc",
|
|
12
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
13
|
+
},
|
|
14
|
+
"author": "Oscar Cuéllar",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"typescript": "^5.1.6"
|
|
18
|
+
},
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=18.0.0"
|
|
21
|
+
},
|
|
22
|
+
"gitHead": "0802e24e0ee8234741e4b50c68067dd025acde49"
|
|
23
|
+
}
|