@merkaly/api 0.38.0 → 0.39.0

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.
@@ -1,10 +1,23 @@
1
1
  import { Schema as MongoSchema } from 'mongoose';
2
2
  import { ContactVendorEntity } from '../../contact/vendor';
3
- import { SupplierProviderEnum } from '../../integration/supplier';
3
+ import { SupplierErrorCodeEnum, SupplierProviderEnum } from '../../integration/supplier';
4
4
  import { ItemEntity } from '../item';
5
5
  import { TransactionEntity } from '../../transaction.entity.js';
6
6
  import { OrderPurchaseStatusEnum } from './purchase.enum.js';
7
7
  import type { OrderSaleEntity } from '../sale';
8
+ export declare class OrderPurchaseSupplierErrorEntity {
9
+ code: SupplierErrorCodeEnum | null;
10
+ message: string;
11
+ }
12
+ export declare const OrderPurchaseSupplierErrorSchema: MongoSchema<OrderPurchaseSupplierErrorEntity, import("mongoose").Model<OrderPurchaseSupplierErrorEntity, any, any, any, import("mongoose").Document<unknown, any, OrderPurchaseSupplierErrorEntity, any, {}> & OrderPurchaseSupplierErrorEntity & {
13
+ _id: import("mongoose").Types.ObjectId;
14
+ } & {
15
+ __v: number;
16
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, OrderPurchaseSupplierErrorEntity, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<OrderPurchaseSupplierErrorEntity>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<OrderPurchaseSupplierErrorEntity> & {
17
+ _id: import("mongoose").Types.ObjectId;
18
+ } & {
19
+ __v: number;
20
+ }>;
8
21
  export declare class OrderPurchaseSupplierOrderEntity {
9
22
  provider: SupplierProviderEnum;
10
23
  orderIds: string[];
@@ -13,7 +26,7 @@ export declare class OrderPurchaseSupplierOrderEntity {
13
26
  placedAt: Date;
14
27
  syncedAt?: Date;
15
28
  payExpiryDate?: Date;
16
- error?: string;
29
+ error?: OrderPurchaseSupplierErrorEntity | null;
17
30
  paidAfterCancelAt?: Date;
18
31
  }
19
32
  export declare const OrderPurchaseSupplierOrderSchema: MongoSchema<OrderPurchaseSupplierOrderEntity, import("mongoose").Model<OrderPurchaseSupplierOrderEntity, any, any, any, import("mongoose").Document<unknown, any, OrderPurchaseSupplierOrderEntity, any, {}> & OrderPurchaseSupplierOrderEntity & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@merkaly/api",
3
- "version": "0.38.0",
3
+ "version": "0.39.0",
4
4
  "type": "module",
5
5
  "description": "Shared TypeScript interfaces and enums for Merkaly API",
6
6
  "repository": {
@@ -31,7 +31,7 @@
31
31
  "devDependencies": {
32
32
  "@types/node": "^26.6.1",
33
33
  "changelogen": "^0.6.2",
34
- "oxlint": "^1.93.0",
34
+ "oxlint": "^1.94.0",
35
35
  "tsx": "^4.23.0",
36
36
  "typescript": "^7.0.2"
37
37
  },