@nomalism-com/types 0.40.13 → 0.40.14
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/index.cjs
CHANGED
|
@@ -492,6 +492,7 @@ var IBrokerTopic = /* @__PURE__ */ ((IBrokerTopic2) => {
|
|
|
492
492
|
IBrokerTopic2["googlesheet_task_log"] = "googlesheet_task_log";
|
|
493
493
|
IBrokerTopic2["googlesheet_stock_log"] = "googlesheet_stock_log";
|
|
494
494
|
IBrokerTopic2["googlesheet_encomenda_log"] = "googlesheet_encomenda_log";
|
|
495
|
+
IBrokerTopic2["log_google_api_request"] = "log_google_api_request";
|
|
495
496
|
return IBrokerTopic2;
|
|
496
497
|
})(IBrokerTopic || {});
|
|
497
498
|
|
package/dist/index.js
CHANGED
|
@@ -492,6 +492,7 @@ var IBrokerTopic = /* @__PURE__ */ ((IBrokerTopic2) => {
|
|
|
492
492
|
IBrokerTopic2["googlesheet_task_log"] = "googlesheet_task_log";
|
|
493
493
|
IBrokerTopic2["googlesheet_stock_log"] = "googlesheet_stock_log";
|
|
494
494
|
IBrokerTopic2["googlesheet_encomenda_log"] = "googlesheet_encomenda_log";
|
|
495
|
+
IBrokerTopic2["log_google_api_request"] = "log_google_api_request";
|
|
495
496
|
return IBrokerTopic2;
|
|
496
497
|
})(IBrokerTopic || {});
|
|
497
498
|
|
|
@@ -3,7 +3,7 @@ export declare const createBody: joi.ArraySchema<any[]>;
|
|
|
3
3
|
export declare const updateBody: joi.ObjectSchema<any>;
|
|
4
4
|
export declare const updateDataBody: joi.ObjectSchema<any>;
|
|
5
5
|
export declare const updateManyBody: joi.ObjectSchema<any>;
|
|
6
|
-
export declare const updateIndexesBody: joi.ArraySchema<
|
|
7
|
-
export declare const deleteBody: joi.ArraySchema<
|
|
6
|
+
export declare const updateIndexesBody: joi.ArraySchema<any[]>;
|
|
7
|
+
export declare const deleteBody: joi.ArraySchema<any[]>;
|
|
8
8
|
export declare const printLabelParams: joi.ObjectSchema<any>;
|
|
9
9
|
export declare const printLabelQuery: joi.ObjectSchema<any>;
|
|
@@ -80,6 +80,12 @@ export interface IFindOptionalByOwnerIdRequest {
|
|
|
80
80
|
export interface IUpdateManyResponse {
|
|
81
81
|
count: number;
|
|
82
82
|
}
|
|
83
|
+
export interface ILogGoogleApiRequest {
|
|
84
|
+
type: string;
|
|
85
|
+
method: string;
|
|
86
|
+
info: string;
|
|
87
|
+
error?: string;
|
|
88
|
+
}
|
|
83
89
|
export declare const IDataTypeEnum: {
|
|
84
90
|
date: 'date';
|
|
85
91
|
datetime: 'datetime';
|
|
@@ -112,12 +118,7 @@ export declare const findByOwnerIdQueryKeys: IRouteRequest<IFindByOwnerIdRequest
|
|
|
112
118
|
export declare const findByOwnerIdQuery: joi.ObjectSchema<any>;
|
|
113
119
|
export declare const idParam: joi.ObjectSchema<any>;
|
|
114
120
|
export declare const idNumberParam: joi.ObjectSchema<any>;
|
|
115
|
-
export declare const findMinifiedReponse: joi.ArraySchema<
|
|
116
|
-
name: unknown;
|
|
117
|
-
id: unknown;
|
|
118
|
-
group: unknown;
|
|
119
|
-
multimedia_id: unknown;
|
|
120
|
-
}[]>;
|
|
121
|
+
export declare const findMinifiedReponse: joi.ArraySchema<any[]>;
|
|
121
122
|
export declare const joiValidateStamps: IRouteResponseWithoutStamps<WithTimestampsOriginID>;
|
|
122
123
|
export declare const IUserSendEmailDocumentTemplateEnum: {
|
|
123
124
|
generic: 'generic';
|
|
@@ -168,7 +169,8 @@ export declare enum IBrokerTopic {
|
|
|
168
169
|
googlesheet_proposta_log = "googlesheet_proposta_log",
|
|
169
170
|
googlesheet_task_log = "googlesheet_task_log",
|
|
170
171
|
googlesheet_stock_log = "googlesheet_stock_log",
|
|
171
|
-
googlesheet_encomenda_log = "googlesheet_encomenda_log"
|
|
172
|
+
googlesheet_encomenda_log = "googlesheet_encomenda_log",
|
|
173
|
+
log_google_api_request = "log_google_api_request"
|
|
172
174
|
}
|
|
173
175
|
export type IBrokerTopicPayload = {
|
|
174
176
|
[IBrokerTopic.create]: Record<string, unknown>;
|
|
@@ -347,6 +349,7 @@ export type IBrokerTopicPayload = {
|
|
|
347
349
|
[IBrokerTopic.googlesheet_task_log]: ITask;
|
|
348
350
|
[IBrokerTopic.googlesheet_stock_log]: IStock;
|
|
349
351
|
[IBrokerTopic.googlesheet_encomenda_log]: IEncomenda;
|
|
352
|
+
[IBrokerTopic.log_google_api_request]: ILogGoogleApiRequest;
|
|
350
353
|
};
|
|
351
354
|
export interface IBrokerMessage<T extends IBrokerTopic = IBrokerTopic> {
|
|
352
355
|
topic: T;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/types",
|
|
3
3
|
"description": "A nomalism package with all necessary types and validations for developing APIs",
|
|
4
|
-
"version": "0.40.
|
|
4
|
+
"version": "0.40.14",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|