@nomalism-com/types 0.9.540 → 0.9.541

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.
@@ -30,8 +30,8 @@ export interface IUnpaidMaterialEntranceResponse {
30
30
  }
31
31
  export interface IPurchaseFromProviderRequest {
32
32
  invoice_number: string;
33
- invoice_emission_date: Date;
34
- invoice_due_date: Date;
33
+ invoice_emission_date: string;
34
+ invoice_due_date: string;
35
35
  document_line_ids: string[];
36
36
  global_discount?: number | null;
37
37
  shipping?: {
@@ -11,7 +11,7 @@ export interface IFindResponse {
11
11
  multimedia_id: string;
12
12
  filename: string;
13
13
  created_by: string | null;
14
- created_at: Date;
14
+ created_at: string;
15
15
  }
16
16
  export interface ICreateRequest {
17
17
  task_id: string;
@@ -15,7 +15,7 @@ export interface IFindByQueryResponse {
15
15
  parent_id?: string | null;
16
16
  id: string;
17
17
  number: number;
18
- created_at: Date;
18
+ created_at: string;
19
19
  from: string | null;
20
20
  from_closed: boolean;
21
21
  controller: string;
@@ -37,7 +37,7 @@ export interface IBasicSearchRequest extends IShared.IPaginationRequest {
37
37
  export interface IBasicSearchResponse {
38
38
  number: number;
39
39
  description?: string;
40
- created_at: Date;
40
+ created_at: string;
41
41
  from: string | null;
42
42
  }
43
43
  export interface ICreateRequest {
@@ -39,7 +39,7 @@ export interface IFindPlotsToReturnResponse {
39
39
  already_picked_up: boolean;
40
40
  return_to_provider_without_credit_note: boolean;
41
41
  updated_by: string | null;
42
- updated_at: Date;
42
+ updated_at: string;
43
43
  }
44
44
  export interface IDisassociatePlot {
45
45
  document_line_id: string;
@@ -55,7 +55,7 @@ export interface IInventoryLossResponse {
55
55
  quantity: number;
56
56
  unit_of_measure_quantity_notation: string;
57
57
  updated_by: string | null;
58
- updated_at: Date;
58
+ updated_at: string;
59
59
  }
60
60
  export interface IFindPlotsInPrisonResponse {
61
61
  id: string;
@@ -71,7 +71,7 @@ export interface IFindPlotsInPrisonResponse {
71
71
  } | null;
72
72
  };
73
73
  updated_by: string | null;
74
- updated_at: Date;
74
+ updated_at: string;
75
75
  }
76
76
  export interface IUnfoldPlotRequest {
77
77
  id: string;
@@ -74,7 +74,7 @@ export interface IBasicSearchResponse {
74
74
  promotion_price: number | null;
75
75
  thumbnail?: string | null;
76
76
  stock: number;
77
- updated_at: Date;
77
+ updated_at: string;
78
78
  active: boolean;
79
79
  dnt_come_anymore: boolean;
80
80
  }
@@ -14,16 +14,16 @@ export interface IFindPaginatedRequest extends IFindRequest, IShared.IPagination
14
14
  export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, ''>>;
15
15
  export interface ICreateRequest {
16
16
  name: string;
17
- initial_date: Date;
18
- final_date: Date;
17
+ initial_date: string;
18
+ final_date: string;
19
19
  active_for_purchases_above: number;
20
20
  free_shipping_for_purchases_above: number | null;
21
21
  discount: number;
22
22
  }
23
23
  export interface IUpdateRequest {
24
24
  name?: string;
25
- initial_date?: Date;
26
- final_date?: Date;
25
+ initial_date?: string;
26
+ final_date?: string;
27
27
  active_for_purchases_above?: number;
28
28
  free_shipping_for_purchases_above?: number | null;
29
29
  discount?: number;
@@ -9,7 +9,7 @@ export interface IFindByProviderResponse extends Omit<StockMovement, 'product_id
9
9
  }
10
10
  export type IFindByOwnerIdResponse = Omit<StockMovement, 'product_id'>;
11
11
  export interface IExportCsvRequest {
12
- date: Date;
12
+ date: string;
13
13
  token: string;
14
14
  }
15
15
  export interface IExportCsvResponse {
@@ -27,7 +27,7 @@ export interface IFindByDocumentLineStateRequest {
27
27
  export interface IFindByDocumentLineStateResponse {
28
28
  document_number: string;
29
29
  identifier: string;
30
- created_at: Date;
30
+ created_at: string;
31
31
  url: string;
32
32
  }
33
33
  export interface IBasicSearchRequest extends IShared.IPaginationRequest {
@@ -41,7 +41,7 @@ export interface IBasicSearchResponse {
41
41
  user_number: number;
42
42
  document_line_count: number;
43
43
  url: string;
44
- updated_at: Date;
44
+ updated_at: string;
45
45
  }
46
46
  export interface IFindRequest {
47
47
  owner_id: string;
@@ -52,7 +52,7 @@ export interface IFindByCommissionerIdRequest {
52
52
  commissioner_id: string;
53
53
  }
54
54
  export interface IFindByCommissionerIdResponse {
55
- emission_date: Date;
55
+ emission_date: string;
56
56
  document_name: string;
57
57
  external_name: string | null;
58
58
  total_without_tax: number;
@@ -233,13 +233,13 @@ export interface ICreateProviderFinancialCreditNoteRequest {
233
233
  external_document_name: string;
234
234
  provider_id: string;
235
235
  parent_document_header_id: string | null;
236
- emission_date: Date;
236
+ emission_date: string;
237
237
  values: IValueByVatTax[];
238
238
  }
239
239
  export interface ICreateProviderServiceInvoiceRequest {
240
240
  provider_id: string;
241
241
  external_document_name: string;
242
- emission_date: Date;
242
+ emission_date: string;
243
243
  values: IValueByVatTax[];
244
244
  }
245
245
  export interface IFindProviderReturnRequest {
@@ -265,7 +265,7 @@ export interface ICreateProviderCreditNoteFromReturnDocumentHeaders {
265
265
  document_line_ids: string[];
266
266
  }
267
267
  export interface ICreateProviderCreditNoteFromReturnRequest {
268
- emission_date: Date;
268
+ emission_date: string;
269
269
  external_document_name: string;
270
270
  document_headers: ICreateProviderCreditNoteFromReturnDocumentHeaders[];
271
271
  }
@@ -118,7 +118,7 @@ export type IMetadata = {
118
118
  export type IDataKeys = 'OrderedQuantity' | 'Fatura Devolvida' | 'Levantar DF' | 'Enviar Email NCF' | 'Conferir' | 'Conferir Encomenda' | 'Cancelar' | 'Emitir' | 'Backup PDF' | 'Continuar' | 'Encomendar' | 'DF Rejeitada' | 'Devolucao Cliente' | 'Entrada de Material' | 'OriginalProductId' | 'Saldos Migrados' | 'Pagamento' | 'Estado PHC' | 'imported_from_sheets' | 'sheets_line_position' | 'PHC origin_id' | 'PHC ef_stamp';
119
119
  export interface IDataPayload {
120
120
  value: unknown;
121
- updated_at: Date;
121
+ updated_at: string;
122
122
  updated_by: string;
123
123
  location_id: string;
124
124
  history?: IDataPayload[];
@@ -129,7 +129,7 @@ export type IData = {
129
129
  export type IDocumentLineDocuments = Pick<IDocumentHeader.Entity, 'pdf_link' | 'owner_id' | 'document_number'> & {
130
130
  document_type: Pick<IDocumentType.Entity, 'code' | 'user_type'>;
131
131
  closed: boolean;
132
- emission_date: Date;
132
+ emission_date: string;
133
133
  created_by: string | null;
134
134
  };
135
135
  export interface IEntityExtended extends DocumentLine {
@@ -181,7 +181,7 @@ export interface IUpdateManyRequest {
181
181
  ids: string[];
182
182
  client_discount?: number | null;
183
183
  provider_discount?: number | null;
184
- provider_estimated_delivery_date?: Date | null;
184
+ provider_estimated_delivery_date?: string | null;
185
185
  }
186
186
  export interface IUpdateDataRequestWithoutStamps extends Omit<IUpdateDataRequest, 'payload'> {
187
187
  payload: Pick<IDataPayload, 'value'> & {
@@ -198,7 +198,7 @@ export interface IFindUnallocatedStockResponse {
198
198
  quantity: number;
199
199
  unit_of_measure_quantity_notation: string;
200
200
  updated_by: string | null;
201
- updated_at: Date;
201
+ updated_at: string;
202
202
  }
203
203
  export interface IFindByDocumentLineStateRequest {
204
204
  document_type_id: number;
@@ -14,7 +14,7 @@ export interface IFindByOwnerIdResponse {
14
14
  label: string;
15
15
  visible: boolean;
16
16
  loading: boolean;
17
- emission_date: Date;
17
+ emission_date: string;
18
18
  retryPayload: IUpdateDataRequest | null;
19
19
  }
20
20
  export type IFindRequest = Record<string, unknown>;
@@ -35,16 +35,16 @@ export interface IFindProductHistoryRequest {
35
35
  product_id: string;
36
36
  }
37
37
  export interface IFindProductHistoryClientOrder {
38
- order_date: Date;
38
+ order_date: string;
39
39
  order_name: string;
40
40
  client_name: string;
41
41
  }
42
42
  export interface IFindProductHistoryProviderOrder {
43
- order_date: Date;
43
+ order_date: string;
44
44
  order_name: string;
45
45
  }
46
46
  export interface IFindProductHistoryMovement {
47
- date: Date;
47
+ date: string;
48
48
  document_name: string;
49
49
  link_user_type: IDocumentTypeUserType | null;
50
50
  link_owner_id: string | null;
@@ -15,7 +15,7 @@ export interface IFindPaginatedRequest extends IFindRequest, IShared.IPagination
15
15
  }
16
16
  export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IEntityExtended, ''>>;
17
17
  export interface ICreateForThisDocumentHeaderRequest {
18
- date: Date;
18
+ date: string;
19
19
  debit: number;
20
20
  credit: number;
21
21
  payment_method_id?: string | null;
@@ -54,7 +54,7 @@ export interface IUnpaidPurchasesRequest {
54
54
  client_id: string | null;
55
55
  }
56
56
  export interface IUnpaidByDatePurchasesRequest {
57
- due_date: Date;
57
+ due_date: string;
58
58
  }
59
59
  export type IPaymentOrigin = 'CC Fornecedor' | 'CC Cliente' | 'CC Fornecedor (Descontinuado)' | 'CC Cliente (Descontinuado)';
60
60
  export interface IUnpaidPurchasesResponse extends Pick<Entity, 'date' | 'debit' | 'credit'> {
@@ -122,16 +122,16 @@ export interface IPaymentsBatchResponse {
122
122
  batch_type: IBatchType | null;
123
123
  multimedia_id: string | null;
124
124
  times_downloaded: number;
125
- updated_at: Date;
125
+ updated_at: string;
126
126
  updated_by: string;
127
127
  created_by: string;
128
- created_at: Date;
128
+ created_at: string;
129
129
  }
130
130
  export interface IExportCurrentAccountRequest {
131
131
  token: string;
132
132
  owner_id: string;
133
- start_date: Date | null;
134
- end_date: Date | null;
133
+ start_date: string | null;
134
+ end_date: string | null;
135
135
  }
136
136
  export interface IRepository {
137
137
  findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
@@ -46,7 +46,7 @@ export interface IBasicSearchResponse {
46
46
  contact_name?: string;
47
47
  contact_telephone?: string;
48
48
  nif?: string | null;
49
- updated_at: Date;
49
+ updated_at: string;
50
50
  }
51
51
  export interface IBasicSearchRequest extends IShared.IPaginationRequest {
52
52
  search_value: string | null;
@@ -10,7 +10,7 @@ export interface IFindPaginatedRequest extends IFindRequest, IShared.IPagination
10
10
  export type IFindWithPaginationResponse = IShared.IPaginationResponse<UserTokens>;
11
11
  export interface ICreateRequest {
12
12
  user_id: string;
13
- expires_date: Date;
13
+ expires_date: string;
14
14
  refresh_token: string;
15
15
  }
16
16
  export interface IUpdateRequest {
@@ -7,6 +7,6 @@ export type Multimedia = {
7
7
  content_type: string;
8
8
  original_filename: string;
9
9
  origin_id: string | null;
10
- created_at: Date;
11
- updated_at: Date;
10
+ created_at: string;
11
+ updated_at: string;
12
12
  };
@@ -6,8 +6,8 @@ export type FieldGroup = {
6
6
  entity: string;
7
7
  created_by: string;
8
8
  updated_by: string;
9
- created_at: Date;
10
- updated_at: Date;
9
+ created_at: string;
10
+ updated_at: string;
11
11
  };
12
12
  export type Field = {
13
13
  id: string;
@@ -19,8 +19,8 @@ export type Field = {
19
19
  is_bulk_editable: boolean;
20
20
  created_by: string;
21
21
  updated_by: string;
22
- created_at: Date;
23
- updated_at: Date;
22
+ created_at: string;
23
+ updated_at: string;
24
24
  };
25
25
  export type Observation = {
26
26
  id: string;
@@ -30,16 +30,16 @@ export type Observation = {
30
30
  internal: boolean;
31
31
  created_by: string;
32
32
  updated_by: string;
33
- created_at: Date;
34
- updated_at: Date;
33
+ created_at: string;
34
+ updated_at: string;
35
35
  };
36
36
  export type ObservationType = {
37
37
  id: string;
38
38
  name: string;
39
39
  created_by: string;
40
40
  updated_by: string;
41
- created_at: Date;
42
- updated_at: Date;
41
+ created_at: string;
42
+ updated_at: string;
43
43
  };
44
44
  export type Task = {
45
45
  id: string;
@@ -58,16 +58,16 @@ export type Task = {
58
58
  closed: boolean;
59
59
  created_by: string;
60
60
  updated_by: string;
61
- created_at: Date;
62
- updated_at: Date;
61
+ created_at: string;
62
+ updated_at: string;
63
63
  };
64
64
  export type TaskGroup = {
65
65
  id: string;
66
66
  name: string;
67
67
  created_by: string;
68
68
  updated_by: string;
69
- created_at: Date;
70
- updated_at: Date;
69
+ created_at: string;
70
+ updated_at: string;
71
71
  };
72
72
  export type TaskGroupAssoc = {
73
73
  id: string;
@@ -75,8 +75,8 @@ export type TaskGroupAssoc = {
75
75
  task_group_id: string;
76
76
  created_by: string;
77
77
  updated_by: string;
78
- created_at: Date;
79
- updated_at: Date;
78
+ created_at: string;
79
+ updated_at: string;
80
80
  };
81
81
  export type TaskAttachment = {
82
82
  id: string;
@@ -85,8 +85,8 @@ export type TaskAttachment = {
85
85
  filename: string;
86
86
  created_by: string;
87
87
  updated_by: string;
88
- created_at: Date;
89
- updated_at: Date;
88
+ created_at: string;
89
+ updated_at: string;
90
90
  };
91
91
  export type TaskNotes = {
92
92
  id: string;
@@ -94,8 +94,8 @@ export type TaskNotes = {
94
94
  description: string;
95
95
  created_by: string;
96
96
  updated_by: string;
97
- created_at: Date;
98
- updated_at: Date;
97
+ created_at: string;
98
+ updated_at: string;
99
99
  };
100
100
  export type History = {
101
101
  id: string;
@@ -105,8 +105,8 @@ export type History = {
105
105
  object: unknown;
106
106
  created_by: string;
107
107
  updated_by: string;
108
- created_at: Date;
109
- updated_at: Date;
108
+ created_at: string;
109
+ updated_at: string;
110
110
  };
111
111
  export type File = {
112
112
  id: string;
@@ -116,8 +116,8 @@ export type File = {
116
116
  filename: string;
117
117
  created_by: string;
118
118
  updated_by: string;
119
- created_at: Date;
120
- updated_at: Date;
119
+ created_at: string;
120
+ updated_at: string;
121
121
  };
122
122
  export type DynamicData = {
123
123
  id: string;
@@ -126,23 +126,23 @@ export type DynamicData = {
126
126
  data: unknown;
127
127
  created_by: string;
128
128
  updated_by: string;
129
- created_at: Date;
130
- updated_at: Date;
129
+ created_at: string;
130
+ updated_at: string;
131
131
  };
132
132
  export type GoogleFilePermission = {
133
133
  id: string;
134
134
  file_id: string;
135
135
  email: string;
136
136
  permission_id: string;
137
- created_at: Date;
138
- updated_at: Date;
137
+ created_at: string;
138
+ updated_at: string;
139
139
  };
140
140
  export type Settings = {
141
141
  id: number;
142
142
  key: string;
143
143
  value: string;
144
- created_at: Date;
145
- updated_at: Date;
144
+ created_at: string;
145
+ updated_at: string;
146
146
  };
147
147
  export type ErrorHandler = {
148
148
  id: number;
@@ -150,8 +150,8 @@ export type ErrorHandler = {
150
150
  type: string;
151
151
  error: unknown;
152
152
  request: unknown;
153
- created_at: Date;
154
- updated_at: Date;
153
+ created_at: string;
154
+ updated_at: string;
155
155
  };
156
156
  export type ProjectInfo = {
157
157
  id: number;
@@ -160,8 +160,8 @@ export type ProjectInfo = {
160
160
  email: string;
161
161
  telephone: string;
162
162
  description: string;
163
- created_at: Date;
164
- updated_at: Date;
163
+ created_at: string;
164
+ updated_at: string;
165
165
  };
166
166
  export type EmailLog = {
167
167
  id: string;
@@ -169,6 +169,6 @@ export type EmailLog = {
169
169
  variables: unknown;
170
170
  mail_options: unknown;
171
171
  smtp_response: unknown;
172
- created_at: Date;
173
- updated_at: Date;
172
+ created_at: string;
173
+ updated_at: string;
174
174
  };
@@ -3,9 +3,9 @@ export type ScheduledPrintJob = {
3
3
  printer_id: string;
4
4
  external_url: string | null;
5
5
  moloni_json: unknown;
6
- sent: Date | null;
7
- done: Date | null;
8
- created_at: Date;
6
+ sent: string | null;
7
+ done: string | null;
8
+ created_at: string;
9
9
  created_by: string | null;
10
10
  };
11
11
  export type Printer = {
@@ -25,8 +25,8 @@ export type Printer = {
25
25
  hasCutter: number;
26
26
  lowDensity: number;
27
27
  imagePrintMode: number;
28
- created_at: Date;
29
- updated_at: Date;
28
+ created_at: string;
29
+ updated_at: string;
30
30
  };
31
31
  export type Npc = {
32
32
  id: string;