@nomalism-com/types 0.11.45 → 0.11.47

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.
@@ -2,10 +2,12 @@
2
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
+ var _a;
5
6
  Object.defineProperty(exports, "__esModule", { value: true });
6
7
  exports.documentPdfQuery = exports.findByTypeQuery = exports.sendClientNotificationBody = exports.updateManyWithPersonaBody = exports.transferClientOwnershipBody = exports.createProductionOrderBody = exports.createFromPlotsBody = exports.createProviderCreditNoteFromReturnBody = exports.findProviderReturnQuery = exports.createProviderServiceInvoiceBody = exports.createProviderFinancialCreditNoteBody = exports.findProviderInvoiceQuery = exports.updateBody = exports.basicSearchQuery = exports.findByCommissionerIdQuery = exports.findQuery = exports.findByDocumentLineStateQuery = exports.createFromHeaderBody = exports.createBody = void 0;
7
8
  var joi_1 = __importDefault(require("joi"));
8
9
  var messages_1 = require("../../../shared/messages");
10
+ var interfaces_1 = require("../documentType/interfaces");
9
11
  var createFromHeaderMaturityDate = {
10
12
  id: joi_1.default.string().uuid().required(),
11
13
  name: joi_1.default.string().required(),
@@ -446,7 +448,12 @@ exports.sendClientNotificationBody = joi_1.default
446
448
  .keys(sendClientNotificationBodyKeys)
447
449
  .messages(messages_1.messages);
448
450
  var findByTypeQueryKeys = {
449
- documentTypeCodes: joi_1.default.string().required(),
451
+ documentTypeCodes: joi_1.default
452
+ .array()
453
+ .items((_a = joi_1.default
454
+ .string())
455
+ .valid.apply(_a, interfaces_1.documentTypeCodeTypes).required())
456
+ .required(),
450
457
  };
451
458
  exports.findByTypeQuery = joi_1.default
452
459
  .object()
@@ -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.11.45",
12
+ "version": "0.11.47",
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
  }