@chevre/domain 26.0.0-alpha.42 → 26.0.0-alpha.43
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/lib/chevre/repository.d.ts +15 -0
- package/lib/chevre/repository.js +33 -0
- package/package.json +1 -1
|
@@ -16,6 +16,9 @@ import type { PayActionRepo } from './repo/action/pay';
|
|
|
16
16
|
import type { RefundActionRepo } from './repo/action/refund';
|
|
17
17
|
import type { UpdateActionRepo } from './repo/action/update';
|
|
18
18
|
import type { UseActionRepo } from './repo/action/use';
|
|
19
|
+
import type { CancelActionRepo } from './repo/action/cancel';
|
|
20
|
+
import type { OrderActionRepo } from './repo/action/order';
|
|
21
|
+
import type { ConfirmActionRepo } from './repo/action/confirm';
|
|
19
22
|
import type { AsyncActionRepo } from './repo/asyncAction';
|
|
20
23
|
import type { AdditionalPropertyRepo } from './repo/additionalProperty';
|
|
21
24
|
import type { AdminActionRepo } from './repo/adminAction';
|
|
@@ -171,6 +174,18 @@ export declare namespace action {
|
|
|
171
174
|
namespace Use {
|
|
172
175
|
function createInstance(...params: ConstructorParameters<typeof UseActionRepo>): Promise<UseActionRepo>;
|
|
173
176
|
}
|
|
177
|
+
type Cancel = CancelActionRepo;
|
|
178
|
+
namespace Cancel {
|
|
179
|
+
function createInstance(...params: ConstructorParameters<typeof CancelActionRepo>): Promise<CancelActionRepo>;
|
|
180
|
+
}
|
|
181
|
+
type Order = OrderActionRepo;
|
|
182
|
+
namespace Order {
|
|
183
|
+
function createInstance(...params: ConstructorParameters<typeof OrderActionRepo>): Promise<OrderActionRepo>;
|
|
184
|
+
}
|
|
185
|
+
type Confirm = ConfirmActionRepo;
|
|
186
|
+
namespace Confirm {
|
|
187
|
+
function createInstance(...params: ConstructorParameters<typeof ConfirmActionRepo>): Promise<ConfirmActionRepo>;
|
|
188
|
+
}
|
|
174
189
|
}
|
|
175
190
|
export type AdditionalProperty = AdditionalPropertyRepo;
|
|
176
191
|
export declare namespace AdditionalProperty {
|
package/lib/chevre/repository.js
CHANGED
|
@@ -169,6 +169,39 @@ var action;
|
|
|
169
169
|
}
|
|
170
170
|
Use.createInstance = createInstance;
|
|
171
171
|
})(Use = action.Use || (action.Use = {}));
|
|
172
|
+
let Cancel;
|
|
173
|
+
(function (Cancel) {
|
|
174
|
+
let repo;
|
|
175
|
+
async function createInstance(...params) {
|
|
176
|
+
if (repo === undefined) {
|
|
177
|
+
repo = (await import('./repo/action/cancel.js')).CancelActionRepo;
|
|
178
|
+
}
|
|
179
|
+
return new repo(...params);
|
|
180
|
+
}
|
|
181
|
+
Cancel.createInstance = createInstance;
|
|
182
|
+
})(Cancel = action.Cancel || (action.Cancel = {}));
|
|
183
|
+
let Order;
|
|
184
|
+
(function (Order) {
|
|
185
|
+
let repo;
|
|
186
|
+
async function createInstance(...params) {
|
|
187
|
+
if (repo === undefined) {
|
|
188
|
+
repo = (await import('./repo/action/order.js')).OrderActionRepo;
|
|
189
|
+
}
|
|
190
|
+
return new repo(...params);
|
|
191
|
+
}
|
|
192
|
+
Order.createInstance = createInstance;
|
|
193
|
+
})(Order = action.Order || (action.Order = {}));
|
|
194
|
+
let Confirm;
|
|
195
|
+
(function (Confirm) {
|
|
196
|
+
let repo;
|
|
197
|
+
async function createInstance(...params) {
|
|
198
|
+
if (repo === undefined) {
|
|
199
|
+
repo = (await import('./repo/action/confirm.js')).ConfirmActionRepo;
|
|
200
|
+
}
|
|
201
|
+
return new repo(...params);
|
|
202
|
+
}
|
|
203
|
+
Confirm.createInstance = createInstance;
|
|
204
|
+
})(Confirm = action.Confirm || (action.Confirm = {}));
|
|
172
205
|
})(action || (exports.action = action = {}));
|
|
173
206
|
var AdditionalProperty;
|
|
174
207
|
(function (AdditionalProperty) {
|
package/package.json
CHANGED