@nomalism-com/types 0.10.0 → 0.10.1

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.
@@ -26,7 +26,7 @@ interface IFindDetailedResponse extends Entity {
26
26
  default_vehicle: Vehicles | null;
27
27
  }
28
28
  export type IFindByIdResponse = Omit<IFindDetailedResponse, ''>;
29
- export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, 'user' | 'preferentialContact' | 'Address' | 'personas' | 'exemption_reason' | 'country' | 'language' | 'supportLanguage' | 'providerType' | 'default_payment_method' | 'default_maturity_date' | 'default_delivery_method' | 'default_vehicle'>;
29
+ export type IFindByOwnerIdResponse = Omit<IFindDetailedResponse, 'user' | 'preferential_contact' | 'addresses' | 'personas' | 'exemption_reason' | 'country' | 'language' | 'support_language' | 'provider_type' | 'default_payment_method' | 'default_maturity_date' | 'default_delivery_method' | 'default_vehicle'>;
30
30
  export interface IFindRequest {
31
31
  number?: number[];
32
32
  id?: string[];
@@ -24,7 +24,7 @@ export interface IFindPaginatedRequest extends IFindRequest, IShared.IPagination
24
24
  export type IFindWithPaginationResponse = IShared.IPaginationResponse<Omit<IFindDetailedResponse, ''>>;
25
25
  export interface ICreateRequest {
26
26
  user_id: string;
27
- user_position?: string | null;
27
+ user_position_id?: string | null;
28
28
  location_id: string;
29
29
  internal_email?: string | null;
30
30
  support_language_id?: string | null;
@@ -34,7 +34,7 @@ export interface IUpdateRequest {
34
34
  inactive?: boolean;
35
35
  pin?: string;
36
36
  old_pin?: string;
37
- user_position?: string;
37
+ user_position_id?: string;
38
38
  location_id?: string;
39
39
  internal_email?: string | null;
40
40
  support_language_id?: string | null;
@@ -8,7 +8,7 @@ var joi_1 = __importDefault(require("joi"));
8
8
  var messages_1 = require("../../../shared/messages");
9
9
  var createBodyKeys = {
10
10
  user_id: joi_1.default.string().uuid().required(),
11
- user_position: joi_1.default.string().uuid().allow(null).optional(),
11
+ user_position_id: joi_1.default.string().uuid().allow(null).optional(),
12
12
  location_id: joi_1.default.string().uuid().required(),
13
13
  internal_email: joi_1.default
14
14
  .string()
@@ -32,7 +32,7 @@ var updateBodyKeys = {
32
32
  .email({ tlds: { allow: false } })
33
33
  .optional(),
34
34
  location_id: joi_1.default.string().uuid().optional(),
35
- user_position: joi_1.default.string().uuid().allow(null).optional(),
35
+ user_position_id: joi_1.default.string().uuid().allow(null).optional(),
36
36
  support_language_id: joi_1.default.string().uuid().allow(null).optional(),
37
37
  preferential_contact_id: joi_1.default.string().uuid().allow(null).optional(),
38
38
  };
@@ -8,7 +8,7 @@ interface IFindDetailedResponse extends Entity {
8
8
  supervisor: Entity | null;
9
9
  }
10
10
  export interface IFindByEmailResponse extends IFindDetailedResponse {
11
- StoreOperator: {
11
+ store_operator: {
12
12
  location_id: string;
13
13
  } | null;
14
14
  }
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.10.0",
12
+ "version": "0.10.1",
13
13
  "main": "./dist/index.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [