@molda-org/rentals 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 CHANGED
@@ -77,9 +77,9 @@ export declare const RentalsBlueprint: import("@molda-org/module-runtime").Modul
77
77
  [k: string]: import("@molda-org/module-runtime").ModuleActionDefinition<{
78
78
  id: string;
79
79
  data: Record<string, unknown>;
80
- }, import("@molda-org/module-runtime").ModuleRecord<Record<string, unknown>>> | import("@molda-org/module-runtime").ModuleActionDefinition<{
80
+ }, import("@molda-org/module-runtime").ModuleRecord<Readonly<Record<string, unknown>>>> | import("@molda-org/module-runtime").ModuleActionDefinition<{
81
81
  data: Record<string, unknown>;
82
- }, import("@molda-org/module-runtime").ModuleRecord<Record<string, unknown>>> | import("@molda-org/module-runtime").ModuleActionDefinition<{
82
+ }, import("@molda-org/module-runtime").ModuleRecord<Readonly<Record<string, unknown>>>> | import("@molda-org/module-runtime").ModuleActionDefinition<{
83
83
  id: string;
84
84
  expectedRevision: number;
85
85
  patch: Record<string, unknown>;
@@ -88,9 +88,7 @@ export declare const RentalsBlueprint: import("@molda-org/module-runtime").Modul
88
88
  id: string;
89
89
  expectedRevision: number;
90
90
  patch: Record<string, unknown>;
91
- }, import("@molda-org/module-runtime").ModuleRecord<{
92
- [x: string]: unknown;
93
- }>>;
91
+ }, import("@molda-org/module-runtime").ModuleRecord<Readonly<Record<string, unknown>>>>;
94
92
  }, {
95
93
  [k: string]: import("@molda-org/module-runtime").ModuleViewDefinition<{
96
94
  id: string;
@@ -104,9 +102,9 @@ export declare function createRentalsService(repository: ModuleRepository): {
104
102
  [k: string]: import("@molda-org/module-runtime").ModuleActionDefinition<{
105
103
  id: string;
106
104
  data: Record<string, unknown>;
107
- }, import("@molda-org/module-runtime").ModuleRecord<Record<string, unknown>>> | import("@molda-org/module-runtime").ModuleActionDefinition<{
105
+ }, import("@molda-org/module-runtime").ModuleRecord<Readonly<Record<string, unknown>>>> | import("@molda-org/module-runtime").ModuleActionDefinition<{
108
106
  data: Record<string, unknown>;
109
- }, import("@molda-org/module-runtime").ModuleRecord<Record<string, unknown>>> | import("@molda-org/module-runtime").ModuleActionDefinition<{
107
+ }, import("@molda-org/module-runtime").ModuleRecord<Readonly<Record<string, unknown>>>> | import("@molda-org/module-runtime").ModuleActionDefinition<{
110
108
  id: string;
111
109
  expectedRevision: number;
112
110
  patch: Record<string, unknown>;
@@ -115,9 +113,7 @@ export declare function createRentalsService(repository: ModuleRepository): {
115
113
  id: string;
116
114
  expectedRevision: number;
117
115
  patch: Record<string, unknown>;
118
- }, import("@molda-org/module-runtime").ModuleRecord<{
119
- [x: string]: unknown;
120
- }>>;
116
+ }, import("@molda-org/module-runtime").ModuleRecord<Readonly<Record<string, unknown>>>>;
121
117
  }, {
122
118
  [k: string]: import("@molda-org/module-runtime").ModuleViewDefinition<{
123
119
  id: string;
@@ -148,3 +144,4 @@ export declare function createRentalsService(repository: ModuleRepository): {
148
144
  equals?: Record<string, unknown> | undefined;
149
145
  }, context: import("@molda-org/module-runtime").ModuleExecutionContext): Promise<never>;
150
146
  };
147
+ export declare function createRentalsRuntimeModule(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 RentalsActionIds = ["createRental", "confirmPickup", "extendRental", "confirmReturn"];
3
3
  export const RentalsViewIds = ["availableRentals", "activeRentals", "overdueReturns"];
4
4
  export const RentalsHookIds = ["useRentalAvailability", "useRentals", "useOverdueReturns"];
@@ -23,4 +23,7 @@ export const RentalsBlueprint = defineResourceModule(RentalsSpecification);
23
23
  export function createRentalsService(repository) {
24
24
  return createResourceModuleService(RentalsSpecification, repository);
25
25
  }
26
+ export function createRentalsRuntimeModule(repository) {
27
+ return createResourceModuleContribution(RentalsSpecification, 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,gBAAgB,GAAG,CAAC,cAAc,EAAC,eAAe,EAAC,cAAc,EAAC,eAAe,CAAU,CAAC;AACzG,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,kBAAkB,EAAC,eAAe,EAAC,gBAAgB,CAAU,CAAC;AAC7F,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,uBAAuB,EAAC,YAAY,EAAC,mBAAmB,CAAU,CAAC;AAElG,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,EAAE,EAAE,SAAS;IACb,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE;QACP,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;QAC5G,aAAa,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC,UAAU,CAAC,EAAE,YAAY,EAAE,UAAU,EAAE;QAC1L,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;QAC5G,aAAa,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,C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,EAAE,CAAC;CACtD,CAAC;AAEjD,MAAM,CAAC,MAAM,gBAAgB,GAAG,oBAAoB,CAAC,oBAAoB,CAAC,CAAC;AAE3E,MAAM,UAAU,oBAAoB,CAAC,UAA4B;IAC/D,OAAO,2BAA2B,CAAC,oBAAoB,EAAE,UAAU,CAAC,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,UAA4B;IACrE,OAAO,gCAAgC,CAAC,oBAAoB,EAAE,UAAU,CAAC,CAAC;AAC5E,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molda-org/rentals",
3
- "version": "0.1.0-next.6",
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.6",
20
- "@molda-org/module-runtime": "0.1.0-next.6"
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",