@molda-org/orders-fulfillment 0.1.0-next.6 → 0.1.0-next.8
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.d.ts +7 -10
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -74,9 +74,9 @@ export declare const OrdersFulfillmentBlueprint: import("@molda-org/module-runti
|
|
|
74
74
|
[k: string]: import("@molda-org/module-runtime").ModuleActionDefinition<{
|
|
75
75
|
id: string;
|
|
76
76
|
data: Record<string, unknown>;
|
|
77
|
-
}, import("@molda-org/module-runtime").ModuleRecord<Record<string, unknown
|
|
77
|
+
}, import("@molda-org/module-runtime").ModuleRecord<Readonly<Record<string, unknown>>>> | import("@molda-org/module-runtime").ModuleActionDefinition<{
|
|
78
78
|
data: Record<string, unknown>;
|
|
79
|
-
}, import("@molda-org/module-runtime").ModuleRecord<Record<string, unknown
|
|
79
|
+
}, import("@molda-org/module-runtime").ModuleRecord<Readonly<Record<string, unknown>>>> | import("@molda-org/module-runtime").ModuleActionDefinition<{
|
|
80
80
|
id: string;
|
|
81
81
|
expectedRevision: number;
|
|
82
82
|
patch: Record<string, unknown>;
|
|
@@ -85,9 +85,7 @@ export declare const OrdersFulfillmentBlueprint: import("@molda-org/module-runti
|
|
|
85
85
|
id: string;
|
|
86
86
|
expectedRevision: number;
|
|
87
87
|
patch: Record<string, unknown>;
|
|
88
|
-
}, import("@molda-org/module-runtime").ModuleRecord<
|
|
89
|
-
[x: string]: unknown;
|
|
90
|
-
}>>;
|
|
88
|
+
}, import("@molda-org/module-runtime").ModuleRecord<Readonly<Record<string, unknown>>>>;
|
|
91
89
|
}, {
|
|
92
90
|
[k: string]: import("@molda-org/module-runtime").ModuleViewDefinition<{
|
|
93
91
|
id: string;
|
|
@@ -101,9 +99,9 @@ export declare function createOrdersFulfillmentService(repository: ModuleReposit
|
|
|
101
99
|
[k: string]: import("@molda-org/module-runtime").ModuleActionDefinition<{
|
|
102
100
|
id: string;
|
|
103
101
|
data: Record<string, unknown>;
|
|
104
|
-
}, import("@molda-org/module-runtime").ModuleRecord<Record<string, unknown
|
|
102
|
+
}, import("@molda-org/module-runtime").ModuleRecord<Readonly<Record<string, unknown>>>> | import("@molda-org/module-runtime").ModuleActionDefinition<{
|
|
105
103
|
data: Record<string, unknown>;
|
|
106
|
-
}, import("@molda-org/module-runtime").ModuleRecord<Record<string, unknown
|
|
104
|
+
}, import("@molda-org/module-runtime").ModuleRecord<Readonly<Record<string, unknown>>>> | import("@molda-org/module-runtime").ModuleActionDefinition<{
|
|
107
105
|
id: string;
|
|
108
106
|
expectedRevision: number;
|
|
109
107
|
patch: Record<string, unknown>;
|
|
@@ -112,9 +110,7 @@ export declare function createOrdersFulfillmentService(repository: ModuleReposit
|
|
|
112
110
|
id: string;
|
|
113
111
|
expectedRevision: number;
|
|
114
112
|
patch: Record<string, unknown>;
|
|
115
|
-
}, import("@molda-org/module-runtime").ModuleRecord<
|
|
116
|
-
[x: string]: unknown;
|
|
117
|
-
}>>;
|
|
113
|
+
}, import("@molda-org/module-runtime").ModuleRecord<Readonly<Record<string, unknown>>>>;
|
|
118
114
|
}, {
|
|
119
115
|
[k: string]: import("@molda-org/module-runtime").ModuleViewDefinition<{
|
|
120
116
|
id: string;
|
|
@@ -145,3 +141,4 @@ export declare function createOrdersFulfillmentService(repository: ModuleReposit
|
|
|
145
141
|
equals?: Record<string, unknown> | undefined;
|
|
146
142
|
}, context: import("@molda-org/module-runtime").ModuleExecutionContext): Promise<never>;
|
|
147
143
|
};
|
|
144
|
+
export declare function createOrdersFulfillmentRuntimeModule(repository: ModuleRepository): import("@molda-org/module-runtime").ResourceModuleContribution;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createResourceModuleService, defineResourceModule, } from '@molda-org/module-runtime';
|
|
1
|
+
import { createResourceModuleContribution, createResourceModuleService, defineResourceModule, } from '@molda-org/module-runtime';
|
|
2
2
|
export const OrdersFulfillmentActionIds = ["placeOrder", "updateOrderStatus", "assignFulfillment", "confirmHandoff"];
|
|
3
3
|
export const OrdersFulfillmentViewIds = ["orders", "ordersByStatus", "fulfillmentQueue"];
|
|
4
4
|
export const OrdersFulfillmentHookIds = ["useOrders", "useOrder", "useFulfillmentQueue"];
|
|
@@ -23,4 +23,7 @@ export const OrdersFulfillmentBlueprint = defineResourceModule(OrdersFulfillment
|
|
|
23
23
|
export function createOrdersFulfillmentService(repository) {
|
|
24
24
|
return createResourceModuleService(OrdersFulfillmentSpecification, repository);
|
|
25
25
|
}
|
|
26
|
+
export function createOrdersFulfillmentRuntimeModule(repository) {
|
|
27
|
+
return createResourceModuleContribution(OrdersFulfillmentSpecification, repository);
|
|
28
|
+
}
|
|
26
29
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,2BAA2B,EAC3B,oBAAoB,GAGrB,MAAM,2BAA2B,CAAC;AAcnC,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,YAAY,EAAC,mBAAmB,EAAC,mBAAmB,EAAC,gBAAgB,CAAU,CAAC;AAC3H,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,QAAQ,EAAC,gBAAgB,EAAC,kBAAkB,CAAU,CAAC;AAChG,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,WAAW,EAAC,UAAU,EAAC,qBAAqB,CAAU,CAAC;AAEhG,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,EAAE,EAAE,oBAAoB;IACxB,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE;QACP,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE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AAE,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,uBAAuB,EAAE;QAC3F,gBAAgB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,yBAAyB,EAAE,UAAU,EAAE,wBAAwB,EAAE;KAChH;IACD,UAAU,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,WAAW,EAAE,mDAAmD,EAAE,CAAC;IAC9F,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,6BAA6B,EAAE,WAAW,EAAE,0DAA0D,EAAE,CAAC;CAC5E,CAAC;AAEjD,MAAM,CAAC,MAAM,0BAA0B,GAAG,oBAAoB,CAAC,8BAA8B,CAAC,CAAC;AAE/F,MAAM,UAAU,8BAA8B,CAAC,UAA4B;IACzE,OAAO,2BAA2B,CAAC,8BAA8B,EAAE,UAAU,CAAC,CAAC;AACjF,CAAC;AAED,MAAM,UAAU,oCAAoC,CAAC,UAA4B;IAC/E,OAAO,gCAAgC,CAAC,8BAA8B,EAAE,UAAU,CAAC,CAAC;AACtF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molda-org/orders-fulfillment",
|
|
3
|
-
"version": "0.1.0-next.
|
|
3
|
+
"version": "0.1.0-next.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -13,11 +13,12 @@
|
|
|
13
13
|
],
|
|
14
14
|
"scripts": {
|
|
15
15
|
"build": "tsc -p tsconfig.json",
|
|
16
|
+
"prepack": "npm run build",
|
|
16
17
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
17
18
|
},
|
|
18
19
|
"dependencies": {
|
|
19
|
-
"@molda-org/module-contracts": "0.1.0-next.
|
|
20
|
-
"@molda-org/module-runtime": "0.1.0-next.
|
|
20
|
+
"@molda-org/module-contracts": "0.1.0-next.8",
|
|
21
|
+
"@molda-org/module-runtime": "0.1.0-next.8"
|
|
21
22
|
},
|
|
22
23
|
"devDependencies": {
|
|
23
24
|
"@types/node": "22.19.19",
|