@nomalism-com/types 0.12.0 → 0.12.2

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.
@@ -39,6 +39,7 @@ export interface IGetProduct {
39
39
  designation: string;
40
40
  discount: number;
41
41
  price_sale: number;
42
+ price_cost: number;
42
43
  reference_type?: IReferenceType;
43
44
  }
44
45
  export interface IGetDataResponse {
@@ -25,6 +25,7 @@ export interface ICreateSheetFromDocumentResponse {
25
25
  }
26
26
  export interface IRepository {
27
27
  importFromSheet(params: IShared.IFindByIdRequest): Promise<IFindByGooglesheetIdResponse>;
28
+ isProcessing(params: IShared.IFindByIdRequest): Promise<boolean>;
28
29
  conflictAccept(params: IShared.IFindByIdRequest): Promise<void>;
29
30
  conflictDelete(params: IShared.IFindByIdRequest): Promise<void>;
30
31
  conflictFindByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<IConflictFindByOwnerIdResponse[]>;
@@ -135,3 +135,4 @@ export import EmailLog = Integration.EmailLog;
135
135
  export import SavedEmPicking = Stock.SavedEmPicking;
136
136
  export import EmailTemplate = Integration.EmailTemplate;
137
137
  export import EmailTemplateAttachment = Integration.EmailTemplateAttachment;
138
+ export import GoogleSheetImports = Stock.GoogleSheetImports;
@@ -1099,3 +1099,13 @@ export type SavedEmPicking = {
1099
1099
  created_by: string;
1100
1100
  updated_by: string;
1101
1101
  };
1102
+ export type GoogleSheetImports = {
1103
+ id: string;
1104
+ google_sheet_id: string;
1105
+ done: boolean;
1106
+ data: unknown | null;
1107
+ error: unknown | null;
1108
+ created_at: Date;
1109
+ created_by: string;
1110
+ updated_at: Date;
1111
+ };
@@ -113,7 +113,8 @@ export declare enum IBrokerTopic {
113
113
  error_handler = "error_handler",
114
114
  provider_order_schedule_email = "provider_order_schedule_email",
115
115
  client_notice_schedule_email = "client_notice_schedule_email",
116
- payment_notification_to_provider = "payment_notification_to_provider"
116
+ payment_notification_to_provider = "payment_notification_to_provider",
117
+ google_sheet_import = "google_sheet_import"
117
118
  }
118
119
  export type IBrokerTopicPayload = {
119
120
  [IBrokerTopic.create]: Record<string, unknown>;
@@ -124,6 +125,11 @@ export type IBrokerTopicPayload = {
124
125
  task_id: string;
125
126
  description: string;
126
127
  };
128
+ [IBrokerTopic.google_sheet_import]: {
129
+ google_sheet_id: string;
130
+ user_id: string;
131
+ location_id: string;
132
+ };
127
133
  [IBrokerTopic.moloni_create_document]: {
128
134
  document_header_id: string;
129
135
  user_id: string;
@@ -75,4 +75,5 @@ var IBrokerTopic;
75
75
  IBrokerTopic["provider_order_schedule_email"] = "provider_order_schedule_email";
76
76
  IBrokerTopic["client_notice_schedule_email"] = "client_notice_schedule_email";
77
77
  IBrokerTopic["payment_notification_to_provider"] = "payment_notification_to_provider";
78
+ IBrokerTopic["google_sheet_import"] = "google_sheet_import";
78
79
  })(IBrokerTopic || (exports.IBrokerTopic = IBrokerTopic = {}));
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.12.0",
12
+ "version": "0.12.2",
13
13
  "main": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/convert-units": "^2.3.9",
41
- "@types/node": "^18.18.11",
41
+ "@types/node": "^18.18.12",
42
42
  "@typescript-eslint/eslint-plugin": "^6.12.0",
43
43
  "@typescript-eslint/parser": "^6.12.0",
44
44
  "concurrently": "^8.2.2",
@@ -49,7 +49,7 @@
49
49
  "eslint-plugin-import": "^2.29.0",
50
50
  "eslint-plugin-prettier": "^5.0.1",
51
51
  "prettier": "^3.1.0",
52
- "tsx": "^4.2.0",
52
+ "tsx": "^4.3.0",
53
53
  "typescript": "^5.3.2"
54
54
  }
55
55
  }