@chevre/domain 24.0.0-alpha.26 → 24.0.0-alpha.28
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/errorHandler.js +1 -1
- package/lib/chevre/repo/accountTitle.d.ts +7 -3
- package/lib/chevre/repo/action/acceptCOAOffer.js +0 -2
- package/lib/chevre/repo/action/acceptPay.d.ts +4 -0
- package/lib/chevre/repo/action/acceptPay.js +40 -52
- package/lib/chevre/repo/action/actionProcess.d.ts +31 -1
- package/lib/chevre/repo/action/actionProcess.js +499 -4
- package/lib/chevre/repo/action/authorizeInvoice.d.ts +14 -1
- package/lib/chevre/repo/action/authorizeInvoice.js +36 -0
- package/lib/chevre/repo/action/authorizePaymentMethod.js +9 -47
- package/lib/chevre/repo/action.d.ts +8 -8
- package/lib/chevre/repo/action.js +2 -510
- package/lib/chevre/repo/aggregateOffer.d.ts +7 -3
- package/lib/chevre/repo/assetTransaction.d.ts +48 -22
- package/lib/chevre/repo/categoryCode.d.ts +8 -3
- package/lib/chevre/repo/comment.d.ts +7 -3
- package/lib/chevre/repo/creativeWork.d.ts +8 -7
- package/lib/chevre/repo/customer.d.ts +8 -3
- package/lib/chevre/repo/event.d.ts +11 -23
- package/lib/chevre/repo/event.js +22 -23
- package/lib/chevre/repo/eventSeries.d.ts +10 -4
- package/lib/chevre/repo/identity.d.ts +12 -3
- package/lib/chevre/repo/identityProvider.d.ts +7 -18
- package/lib/chevre/repo/issuer.d.ts +8 -8
- package/lib/chevre/repo/member.d.ts +7 -3
- package/lib/chevre/repo/merchantReturnPolicy.d.ts +7 -3
- package/lib/chevre/repo/message.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/acceptedPaymentMethod.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/action.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/aggregateOffer.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/customer.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/customerType.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/eventOffer.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/identity.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/identityProvider.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/issuer.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/member/global.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/message.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/movieTicketTypes.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/offerItemCondition.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +2 -2
- package/lib/chevre/repo/mongoose/schemas/paymentService.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/paymentServiceChannel.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/potentialAction.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +3 -1
- package/lib/chevre/repo/mongoose/schemas/product.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/productModel.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/project.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/schedule.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/seller.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/sellerReturnPolicy.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/setting.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/task.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/ticket.d.ts +1 -1
- package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +5 -2
- package/lib/chevre/repo/mongoose/schemas/webSite.d.ts +1 -1
- package/lib/chevre/repo/movieTicketType.d.ts +2 -1
- package/lib/chevre/repo/offerCatalog.d.ts +8 -4
- package/lib/chevre/repo/order.d.ts +10 -4
- package/lib/chevre/repo/ownershipInfo.d.ts +8 -7
- package/lib/chevre/repo/paymentService.d.ts +8 -8
- package/lib/chevre/repo/place/movieTheater.d.ts +7 -3
- package/lib/chevre/repo/place/screeningRoom.d.ts +7 -3
- package/lib/chevre/repo/potentialAction.d.ts +7 -26
- package/lib/chevre/repo/priceSpecification.d.ts +47 -22
- package/lib/chevre/repo/priceSpecification.js +0 -6
- package/lib/chevre/repo/product.d.ts +7 -3
- package/lib/chevre/repo/project.d.ts +8 -11
- package/lib/chevre/repo/reservation.d.ts +18 -6
- package/lib/chevre/repo/reserveInterface.js +4 -4
- package/lib/chevre/repo/role.d.ts +39 -3
- package/lib/chevre/repo/schedule.js +1 -1
- package/lib/chevre/repo/seller.d.ts +7 -50
- package/lib/chevre/repo/task.d.ts +7 -67
- package/lib/chevre/repo/transaction.d.ts +103 -13
- package/lib/chevre/service/order/sendOrder.js +0 -1
- package/lib/chevre/service/payment/creditCard/voidTransaction.d.ts +9 -8
- package/lib/chevre/service/payment/creditCard/voidTransaction.js +15 -7
- package/lib/chevre/service/task/payment/voidPaymentByTask.d.ts +2 -0
- package/lib/chevre/service/task/voidPayment.js +2 -0
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
2
|
import * as factory from '../../../factory';
|
|
3
|
-
export interface IDocType extends factory.aggregateOffer.IAggregateOffer {
|
|
3
|
+
export interface IDocType extends Omit<factory.aggregateOffer.IAggregateOffer, 'id'> {
|
|
4
4
|
_id: string;
|
|
5
5
|
includedInDataCatalog?: any[];
|
|
6
6
|
}
|
|
@@ -7,4 +7,4 @@ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocT
|
|
|
7
7
|
declare const modelName = "Authorization";
|
|
8
8
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
9
9
|
declare function createSchema(): ISchema;
|
|
10
|
-
export { createSchema, IModel, indexes, modelName };
|
|
10
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
2
|
import * as factory from '../../../factory';
|
|
3
|
-
type IDocType = factory.categoryCode.ICategoryCode
|
|
3
|
+
type IDocType = Omit<factory.categoryCode.ICategoryCode, 'id'>;
|
|
4
4
|
type IModel = Model<IDocType>;
|
|
5
5
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
6
|
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
7
7
|
declare const modelName = "CategoryCode";
|
|
8
8
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
9
9
|
declare function createSchema(): ISchema;
|
|
10
|
-
export { createSchema, IModel, indexes, modelName };
|
|
10
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
2
|
import * as factory from '../../../factory';
|
|
3
|
-
type IDocType = factory.creativeWork.movie.ICreativeWork & {
|
|
3
|
+
type IDocType = Omit<factory.creativeWork.movie.ICreativeWork, 'id'> & {
|
|
4
4
|
description?: string;
|
|
5
5
|
};
|
|
6
6
|
type IModel = Model<IDocType>;
|
|
@@ -9,4 +9,4 @@ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocT
|
|
|
9
9
|
declare const modelName = "CreativeWork";
|
|
10
10
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
11
11
|
declare function createSchema(): ISchema;
|
|
12
|
-
export { createSchema, IModel, indexes, modelName };
|
|
12
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
2
|
import * as factory from '../../../factory';
|
|
3
|
-
type IDocType = factory.customer.ICustomer
|
|
3
|
+
type IDocType = Omit<factory.customer.ICustomer, 'id'>;
|
|
4
4
|
type IModel = Model<IDocType>;
|
|
5
5
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
6
|
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
7
7
|
declare const modelName = "Customer";
|
|
8
8
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
9
9
|
declare function createSchema(): ISchema;
|
|
10
|
-
export { createSchema, IModel, indexes, modelName };
|
|
10
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
2
|
import * as factory from '../../../factory';
|
|
3
3
|
export type ICustomerType = Pick<factory.categoryCode.ICategoryCode, 'codeValue' | 'id' | 'name' | 'typeOf'>;
|
|
4
|
-
type IDocType = ICustomerType
|
|
4
|
+
type IDocType = Omit<ICustomerType, 'id'>;
|
|
5
5
|
type IModel = Model<IDocType>;
|
|
6
6
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
7
7
|
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
8
8
|
declare const modelName = "CustomerType";
|
|
9
9
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
10
10
|
declare function createSchema(): ISchema;
|
|
11
|
-
export { createSchema, IModel, indexes, modelName };
|
|
11
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
2
|
import * as factory from '../../../factory';
|
|
3
|
-
type IDocType = factory.eventOffer.IEventOffer
|
|
3
|
+
type IDocType = Omit<factory.eventOffer.IEventOffer, 'id'>;
|
|
4
4
|
type IModel = Model<IDocType>;
|
|
5
5
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
6
|
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
@@ -7,4 +7,4 @@ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocT
|
|
|
7
7
|
declare const modelName = "Identity";
|
|
8
8
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
9
9
|
declare function createSchema(): ISchema;
|
|
10
|
-
export { createSchema, IModel, indexes, modelName };
|
|
10
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -7,4 +7,4 @@ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocT
|
|
|
7
7
|
declare const modelName = "IdentityProvider";
|
|
8
8
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
9
9
|
declare function createSchema(): ISchema;
|
|
10
|
-
export { createSchema, IModel, indexes, modelName };
|
|
10
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
2
|
import * as factory from '../../../factory';
|
|
3
|
-
export type IDocType = factory.issuer.IIssuer & {
|
|
3
|
+
export type IDocType = Omit<factory.issuer.IIssuer, 'id'> & {
|
|
4
4
|
hasMemberProgram?: (factory.issuer.IMemberProgram & {
|
|
5
5
|
hasTiers?: Pick<factory.issuer.IMemberProgramTier, 'identifier' | 'typeOf'>[];
|
|
6
6
|
})[];
|
|
@@ -11,4 +11,4 @@ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocT
|
|
|
11
11
|
declare const modelName = "Member.Global";
|
|
12
12
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
13
13
|
declare function createSchema(): ISchema;
|
|
14
|
-
export { createSchema, IGlobalMember, IModel, indexes, modelName };
|
|
14
|
+
export { createSchema, IDocType, IGlobalMember, IModel, indexes, modelName };
|
|
@@ -15,11 +15,11 @@ export type IEmailMessage = factory.creativeWork.message.email.ICreativeWork & {
|
|
|
15
15
|
typeOf: factory.organizationType.Corporation;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
type IDocType = IEmailMessage
|
|
18
|
+
type IDocType = Omit<IEmailMessage, 'id'>;
|
|
19
19
|
type IModel = Model<IDocType>;
|
|
20
20
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
21
21
|
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
22
22
|
declare const modelName = "Message";
|
|
23
23
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
24
24
|
declare function createSchema(): ISchema;
|
|
25
|
-
export { createSchema, IModel, indexes, modelName };
|
|
25
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
2
|
import * as factory from '../../../factory';
|
|
3
|
-
type IDocType = factory.movieTicketType.IMovieTicketType
|
|
3
|
+
type IDocType = Omit<factory.movieTicketType.IMovieTicketType, 'id'>;
|
|
4
4
|
type IModel = Model<IDocType>;
|
|
5
5
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
6
|
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
2
|
import * as factory from '../../../factory';
|
|
3
|
-
export type IDocType = factory.offerCatalog.IOfferCatalog & {
|
|
3
|
+
export type IDocType = Omit<factory.offerCatalog.IOfferCatalog, 'id'> & {
|
|
4
4
|
_id: string;
|
|
5
5
|
alternateName?: any;
|
|
6
6
|
dateSynced?: Date;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
2
|
import * as factory from '../../../factory';
|
|
3
|
-
export type IDocType = factory.offerCatalog.IOfferCatalog & {
|
|
3
|
+
export type IDocType = Omit<factory.offerCatalog.IOfferCatalog, 'id'> & {
|
|
4
4
|
_id: string;
|
|
5
5
|
alternateName?: any;
|
|
6
6
|
dateSynced?: Date;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
2
|
import * as factory from '../../../factory';
|
|
3
|
-
type IDocType = factory.offerItemCondition.IOfferItemCondition
|
|
3
|
+
type IDocType = Omit<factory.offerItemCondition.IOfferItemCondition, 'id'>;
|
|
4
4
|
type IModel = Model<IDocType>;
|
|
5
5
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
6
|
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
7
7
|
declare const modelName = "OfferItemCondition";
|
|
8
8
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
9
9
|
declare function createSchema(): ISchema;
|
|
10
|
-
export { createSchema, IModel, indexes, modelName };
|
|
10
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
2
|
import * as factory from '../../../factory';
|
|
3
|
-
type IDocType = factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood> & {
|
|
3
|
+
type IDocType = Omit<factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood>, 'id'> & {
|
|
4
4
|
_id: string;
|
|
5
5
|
};
|
|
6
6
|
type IModel = Model<IDocType>;
|
|
@@ -9,4 +9,4 @@ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocT
|
|
|
9
9
|
declare const modelName = "OwnershipInfo";
|
|
10
10
|
declare function createSchema(): ISchema;
|
|
11
11
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
12
|
-
export { createSchema, IModel, indexes, modelName };
|
|
12
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -9,4 +9,4 @@ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocT
|
|
|
9
9
|
declare const modelName = "PaymentService";
|
|
10
10
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
11
11
|
declare function createSchema(): ISchema;
|
|
12
|
-
export { createSchema, IModel, indexes, modelName };
|
|
12
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -7,4 +7,4 @@ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocT
|
|
|
7
7
|
declare const modelName = "PaymentServiceChannel";
|
|
8
8
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
9
9
|
declare function createSchema(): ISchema;
|
|
10
|
-
export { createSchema, IModel, indexes, modelName };
|
|
10
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -7,4 +7,4 @@ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocT
|
|
|
7
7
|
declare const modelName = "PotentialAction";
|
|
8
8
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
9
9
|
declare function createSchema(): ISchema;
|
|
10
|
-
export { createSchema, IModel, indexes, modelName };
|
|
10
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
2
|
import * as factory from '../../../factory';
|
|
3
|
-
|
|
3
|
+
type ICategoryCodeChargeSpecification = Omit<factory.priceSpecification.IPriceSpecification<factory.priceSpecificationType.CategoryCodeChargeSpecification>, 'id'>;
|
|
4
|
+
type IMovieTicketTypeChargeSpecification = Omit<factory.priceSpecification.IPriceSpecification<factory.priceSpecificationType.MovieTicketTypeChargeSpecification>, 'id'>;
|
|
5
|
+
export type IDocType = (ICategoryCodeChargeSpecification | IMovieTicketTypeChargeSpecification) & {
|
|
4
6
|
validFrom?: Date;
|
|
5
7
|
validThrough?: Date;
|
|
6
8
|
};
|
|
@@ -11,4 +11,4 @@ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocT
|
|
|
11
11
|
declare const modelName = "Product";
|
|
12
12
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
13
13
|
declare function createSchema(): ISchema;
|
|
14
|
-
export { createSchema, IDocTypeAsProduct, IDocTypeAsProductOffer, IModel, indexes, modelName };
|
|
14
|
+
export { createSchema, IDocType, IDocTypeAsProduct, IDocTypeAsProductOffer, IModel, indexes, modelName };
|
|
@@ -22,7 +22,7 @@ export interface IProductModel {
|
|
|
22
22
|
}[];
|
|
23
23
|
}[];
|
|
24
24
|
}
|
|
25
|
-
type IDocType = IProductModel
|
|
25
|
+
type IDocType = Omit<IProductModel, 'id'>;
|
|
26
26
|
type IModel = Model<IDocType>;
|
|
27
27
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
28
28
|
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
@@ -11,4 +11,4 @@ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocT
|
|
|
11
11
|
declare const modelName = "Project";
|
|
12
12
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
13
13
|
declare function createSchema(): ISchema;
|
|
14
|
-
export { createSchema, IModel, indexes, modelName };
|
|
14
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
2
|
import * as factory from '../../../factory';
|
|
3
|
-
type IDocType = factory.schedule.IEventWithSchedule
|
|
3
|
+
type IDocType = Omit<factory.schedule.IEventWithSchedule, 'id'>;
|
|
4
4
|
type IModel = Model<IDocType>;
|
|
5
5
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
6
|
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
@@ -7,4 +7,4 @@ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocT
|
|
|
7
7
|
declare const modelName = "Seller";
|
|
8
8
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
9
9
|
declare function createSchema(): ISchema;
|
|
10
|
-
export { createSchema, IModel, indexes, modelName };
|
|
10
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -7,4 +7,4 @@ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocT
|
|
|
7
7
|
declare const modelName = "SellerReturnPolicy";
|
|
8
8
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
9
9
|
declare function createSchema(): ISchema;
|
|
10
|
-
export { createSchema, IModel, indexes, modelName };
|
|
10
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
2
|
import * as factory from '../../../factory';
|
|
3
|
-
type IDocType = factory.permit.IPermit
|
|
3
|
+
type IDocType = Omit<factory.permit.IPermit, 'id'>;
|
|
4
4
|
type IModel = Model<IDocType>;
|
|
5
5
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
6
|
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
@@ -188,4 +188,4 @@ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocT
|
|
|
188
188
|
declare const modelName = "Setting";
|
|
189
189
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
190
190
|
declare function createSchema(): ISchema;
|
|
191
|
-
export { createSchema, IModel, indexes, modelName };
|
|
191
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -7,4 +7,4 @@ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocT
|
|
|
7
7
|
declare const modelName = "Task";
|
|
8
8
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
9
9
|
declare function createSchema(): ISchema;
|
|
10
|
-
export { createSchema, IModel, indexes, modelName };
|
|
10
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -25,4 +25,4 @@ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocT
|
|
|
25
25
|
declare const modelName = "Ticket";
|
|
26
26
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
27
27
|
declare function createSchema(): ISchema;
|
|
28
|
-
export { createSchema, IModel, indexes, modelName };
|
|
28
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
2
|
import * as factory from '../../../factory';
|
|
3
|
-
type
|
|
3
|
+
type IPlaceOrder = Omit<factory.transaction.placeOrder.ITransaction, 'id'>;
|
|
4
|
+
type IReturnOrder = Omit<factory.transaction.returnOrder.ITransaction, 'id'>;
|
|
5
|
+
type IMoneyTransfer = Omit<factory.transaction.moneyTransfer.ITransaction, 'id'>;
|
|
6
|
+
type IDocType = IPlaceOrder | IReturnOrder | IMoneyTransfer;
|
|
4
7
|
type IModel = Model<IDocType>;
|
|
5
8
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|
|
6
9
|
type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
|
|
7
10
|
declare const modelName = "Transaction";
|
|
8
11
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
9
12
|
declare function createSchema(): ISchema;
|
|
10
|
-
export { createSchema, IModel, indexes, modelName };
|
|
13
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -7,4 +7,4 @@ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocT
|
|
|
7
7
|
declare const modelName = "WebSite";
|
|
8
8
|
declare const indexes: [d: IndexDefinition, o: IndexOptions][];
|
|
9
9
|
declare function createSchema(): ISchema;
|
|
10
|
-
export { createSchema, IModel, indexes, modelName };
|
|
10
|
+
export { createSchema, IDocType, IModel, indexes, modelName };
|
|
@@ -4,7 +4,7 @@ import * as factory from '../factory';
|
|
|
4
4
|
type IUnset = {
|
|
5
5
|
[key in keyof Pick<IDocType, 'color' | 'image'>]?: 1;
|
|
6
6
|
};
|
|
7
|
-
type IKeyOfProjection = keyof IDocType;
|
|
7
|
+
type IKeyOfProjection = keyof IDocType | 'id';
|
|
8
8
|
/**
|
|
9
9
|
* 決済カード区分リポジトリ
|
|
10
10
|
*/
|
|
@@ -35,6 +35,7 @@ export declare class MovieTicketTypeRepo {
|
|
|
35
35
|
id?: string;
|
|
36
36
|
attributes: IDocType & {
|
|
37
37
|
$unset?: IUnset;
|
|
38
|
+
id?: string;
|
|
38
39
|
};
|
|
39
40
|
}): Promise<{
|
|
40
41
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BulkWriteResult } from 'mongodb';
|
|
2
|
-
import type { Connection,
|
|
2
|
+
import type { Connection, FilterQuery } from 'mongoose';
|
|
3
3
|
import * as factory from '../factory';
|
|
4
4
|
import { IDocType } from './mongoose/schemas/offerCatalog';
|
|
5
5
|
export type IAggregatedOfferCatalog = Pick<factory.offerCatalog.IOfferCatalog, 'id' | 'name' | 'description' | 'project' | 'typeOf' | 'identifier' | 'itemOffered' | 'additionalProperty'> & {
|
|
@@ -169,19 +169,23 @@ export declare class OfferCatalogRepo {
|
|
|
169
169
|
id: string;
|
|
170
170
|
};
|
|
171
171
|
}): Promise<void>;
|
|
172
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<Document<unknown, {}, IDocType> & factory.offerCatalog.IOfferCatalog & {
|
|
172
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<factory.offerCatalog.IOfferCatalog, "id"> & {
|
|
173
173
|
_id: string;
|
|
174
174
|
alternateName?: any;
|
|
175
175
|
dateSynced?: Date;
|
|
176
176
|
} & Required<{
|
|
177
177
|
_id: string;
|
|
178
|
-
}
|
|
178
|
+
}> & {
|
|
179
|
+
__v: number;
|
|
180
|
+
}, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<factory.offerCatalog.IOfferCatalog, "id"> & {
|
|
179
181
|
_id: string;
|
|
180
182
|
alternateName?: any;
|
|
181
183
|
dateSynced?: Date;
|
|
182
184
|
} & Required<{
|
|
183
185
|
_id: string;
|
|
184
|
-
}
|
|
186
|
+
}> & {
|
|
187
|
+
__v: number;
|
|
188
|
+
}) | null>;
|
|
185
189
|
unsetUnnecessaryFields(params: {
|
|
186
190
|
filter: FilterQuery<factory.offerCatalog.IOfferCatalog>;
|
|
187
191
|
$unset: any;
|
|
@@ -144,17 +144,23 @@ export declare class OrderRepo {
|
|
|
144
144
|
})[]>;
|
|
145
145
|
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, Omit<factory.order.IOrder, "id"> & {
|
|
146
146
|
acceptedOffers?: factory.order.IAcceptedOffer<factory.order.IItemOffered>[];
|
|
147
|
-
}> & Omit<factory.order.IOrder, "id"> & {
|
|
147
|
+
}, {}, {}> & Omit<factory.order.IOrder, "id"> & {
|
|
148
148
|
acceptedOffers?: factory.order.IAcceptedOffer<factory.order.IItemOffered>[];
|
|
149
149
|
} & {
|
|
150
150
|
_id: import("mongoose").Types.ObjectId;
|
|
151
|
-
}
|
|
151
|
+
} & {
|
|
152
|
+
__v: number;
|
|
153
|
+
}, import("mongoose").QueryOptions<Omit<factory.order.IOrder, "id"> & {
|
|
154
|
+
acceptedOffers?: factory.order.IAcceptedOffer<factory.order.IItemOffered>[];
|
|
155
|
+
}>, (import("mongoose").Document<unknown, {}, Omit<factory.order.IOrder, "id"> & {
|
|
152
156
|
acceptedOffers?: factory.order.IAcceptedOffer<factory.order.IItemOffered>[];
|
|
153
|
-
}> & Omit<factory.order.IOrder, "id"> & {
|
|
157
|
+
}, {}, {}> & Omit<factory.order.IOrder, "id"> & {
|
|
154
158
|
acceptedOffers?: factory.order.IAcceptedOffer<factory.order.IItemOffered>[];
|
|
155
159
|
} & {
|
|
156
160
|
_id: import("mongoose").Types.ObjectId;
|
|
157
|
-
}
|
|
161
|
+
} & {
|
|
162
|
+
__v: number;
|
|
163
|
+
}) | null>;
|
|
158
164
|
unsetUnnecessaryFields(params: {
|
|
159
165
|
filter: FilterQuery<factory.order.IOrder>;
|
|
160
166
|
$unset: any;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Connection } from 'mongoose';
|
|
2
|
+
import { IDocType } from './mongoose/schemas/ownershipInfo';
|
|
2
3
|
import * as factory from '../factory';
|
|
3
4
|
export type IOwnershipInfoWithId = factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood> & {
|
|
4
5
|
id: string;
|
|
@@ -73,19 +74,19 @@ export declare class OwnershipInfoRepo {
|
|
|
73
74
|
$lt: Date;
|
|
74
75
|
};
|
|
75
76
|
}): Promise<void>;
|
|
76
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood> & {
|
|
77
|
-
_id: string;
|
|
78
|
-
}> & factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood> & {
|
|
77
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood>, "id"> & {
|
|
79
78
|
_id: string;
|
|
80
79
|
} & Required<{
|
|
81
80
|
_id: string;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
}> & factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood> & {
|
|
81
|
+
}> & {
|
|
82
|
+
__v: number;
|
|
83
|
+
}, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood>, "id"> & {
|
|
85
84
|
_id: string;
|
|
86
85
|
} & Required<{
|
|
87
86
|
_id: string;
|
|
88
|
-
}
|
|
87
|
+
}> & {
|
|
88
|
+
__v: number;
|
|
89
|
+
}) | null>;
|
|
89
90
|
/**
|
|
90
91
|
* 所有者を追加する
|
|
91
92
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Connection, FilterQuery } from 'mongoose';
|
|
2
2
|
import * as factory from '../factory';
|
|
3
|
-
import { IModel } from './mongoose/schemas/paymentService';
|
|
3
|
+
import { IModel, IDocType } from './mongoose/schemas/paymentService';
|
|
4
4
|
type IUnsetKey = keyof Pick<factory.service.paymentService.IService, 'additionalProperty' | 'availableChannel' | 'serviceOutput' | 'serviceType'>;
|
|
5
5
|
type IKeyOfProjection4paymentService = keyof factory.service.paymentService.IService;
|
|
6
6
|
/**
|
|
@@ -73,19 +73,19 @@ export declare class PaymentServiceRepo {
|
|
|
73
73
|
filter: any;
|
|
74
74
|
$unset: any;
|
|
75
75
|
}): Promise<import("mongoose").UpdateWriteOpResult>;
|
|
76
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, Omit<import("@chevre/factory/lib/service/paymentService").IService, "id"> & {
|
|
77
|
-
provider?: factory.service.paymentService.IProvider[];
|
|
78
|
-
}> & Omit<import("@chevre/factory/lib/service/paymentService").IService, "id"> & {
|
|
76
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<import("@chevre/factory/lib/service/paymentService").IService, "id"> & {
|
|
79
77
|
provider?: factory.service.paymentService.IProvider[];
|
|
80
78
|
} & {
|
|
81
79
|
_id: import("mongoose").Types.ObjectId;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
}> & Omit<import("@chevre/factory/lib/service/paymentService").IService, "id"> & {
|
|
80
|
+
} & {
|
|
81
|
+
__v: number;
|
|
82
|
+
}, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<import("@chevre/factory/lib/service/paymentService").IService, "id"> & {
|
|
85
83
|
provider?: factory.service.paymentService.IProvider[];
|
|
86
84
|
} & {
|
|
87
85
|
_id: import("mongoose").Types.ObjectId;
|
|
88
|
-
}
|
|
86
|
+
} & {
|
|
87
|
+
__v: number;
|
|
88
|
+
}) | null>;
|
|
89
89
|
getModel(): IModel;
|
|
90
90
|
}
|
|
91
91
|
export {};
|
|
@@ -95,15 +95,19 @@ export declare class MovieTheaterRepo {
|
|
|
95
95
|
id: string;
|
|
96
96
|
};
|
|
97
97
|
}): Promise<void>;
|
|
98
|
-
getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType> & Omit<import("@chevre/factory/lib/place/movieTheater").IPlace, "id"> & {
|
|
98
|
+
getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<import("@chevre/factory/lib/place/movieTheater").IPlace, "id"> & {
|
|
99
99
|
hasPOS?: factory.place.movieTheater.IPOS[];
|
|
100
100
|
} & {
|
|
101
101
|
_id: import("mongoose").Types.ObjectId;
|
|
102
|
-
}
|
|
102
|
+
} & {
|
|
103
|
+
__v: number;
|
|
104
|
+
}, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<import("@chevre/factory/lib/place/movieTheater").IPlace, "id"> & {
|
|
103
105
|
hasPOS?: factory.place.movieTheater.IPOS[];
|
|
104
106
|
} & {
|
|
105
107
|
_id: import("mongoose").Types.ObjectId;
|
|
106
|
-
}
|
|
108
|
+
} & {
|
|
109
|
+
__v: number;
|
|
110
|
+
}) | null>;
|
|
107
111
|
unsetUnnecessaryFields(params: {
|
|
108
112
|
filter: any;
|
|
109
113
|
$unset: any;
|
|
@@ -124,7 +124,7 @@ export declare class ScreeningRoomRepo {
|
|
|
124
124
|
id: string;
|
|
125
125
|
};
|
|
126
126
|
}): Promise<void>;
|
|
127
|
-
getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType> & Omit<import("@chevre/factory/lib/place/screeningRoom").IPlace, "containsPlace"> & {
|
|
127
|
+
getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<import("@chevre/factory/lib/place/screeningRoom").IPlace, "containsPlace"> & {
|
|
128
128
|
description?: any;
|
|
129
129
|
openingHoursSpecification?: any;
|
|
130
130
|
smokingAllowed?: boolean;
|
|
@@ -133,7 +133,9 @@ export declare class ScreeningRoomRepo {
|
|
|
133
133
|
})[];
|
|
134
134
|
} & {
|
|
135
135
|
_id: import("mongoose").Types.ObjectId;
|
|
136
|
-
}
|
|
136
|
+
} & {
|
|
137
|
+
__v: number;
|
|
138
|
+
}, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<import("@chevre/factory/lib/place/screeningRoom").IPlace, "containsPlace"> & {
|
|
137
139
|
description?: any;
|
|
138
140
|
openingHoursSpecification?: any;
|
|
139
141
|
smokingAllowed?: boolean;
|
|
@@ -142,6 +144,8 @@ export declare class ScreeningRoomRepo {
|
|
|
142
144
|
})[];
|
|
143
145
|
} & {
|
|
144
146
|
_id: import("mongoose").Types.ObjectId;
|
|
145
|
-
}
|
|
147
|
+
} & {
|
|
148
|
+
__v: number;
|
|
149
|
+
}) | null>;
|
|
146
150
|
}
|
|
147
151
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Connection, FilterQuery, QueryOptions } from 'mongoose';
|
|
2
2
|
import * as factory from '../factory';
|
|
3
|
+
import { IDocType } from './mongoose/schemas/potentialAction';
|
|
3
4
|
export type ISavingPotentialAction = Pick<factory.potentialAction.IPotentialAction, 'target' | 'project' | 'typeOf' | 'identifier'> & {
|
|
4
5
|
id?: never;
|
|
5
6
|
};
|
|
@@ -23,34 +24,14 @@ export declare class PotentialActionRepo {
|
|
|
23
24
|
id: string;
|
|
24
25
|
}>;
|
|
25
26
|
projectFields(conditions: factory.potentialAction.ISearchConditions, inclusion: IKeyOfProjection[]): Promise<factory.potentialAction.IPotentialAction[]>;
|
|
26
|
-
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, {
|
|
27
|
-
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
28
|
-
identifier: string;
|
|
29
|
-
typeOf: factory.actionType.InformAction;
|
|
30
|
-
recipient: factory.potentialAction.IInformRecipient;
|
|
31
|
-
target: factory.entryPoint.IEntryPoint;
|
|
32
|
-
}> & {
|
|
33
|
-
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
34
|
-
identifier: string;
|
|
35
|
-
typeOf: factory.actionType.InformAction;
|
|
36
|
-
recipient: factory.potentialAction.IInformRecipient;
|
|
37
|
-
target: factory.entryPoint.IEntryPoint;
|
|
38
|
-
} & {
|
|
27
|
+
getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & IDocType & {
|
|
39
28
|
_id: import("mongoose").Types.ObjectId;
|
|
40
|
-
}, QueryOptions<import("mongoose").Document<unknown, {}, {
|
|
41
|
-
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
42
|
-
identifier: string;
|
|
43
|
-
typeOf: factory.actionType.InformAction;
|
|
44
|
-
recipient: factory.potentialAction.IInformRecipient;
|
|
45
|
-
target: factory.entryPoint.IEntryPoint;
|
|
46
|
-
}> & {
|
|
47
|
-
project: Pick<factory.project.IProject, "id" | "typeOf">;
|
|
48
|
-
identifier: string;
|
|
49
|
-
typeOf: factory.actionType.InformAction;
|
|
50
|
-
recipient: factory.potentialAction.IInformRecipient;
|
|
51
|
-
target: factory.entryPoint.IEntryPoint;
|
|
52
29
|
} & {
|
|
30
|
+
__v: number;
|
|
31
|
+
}, QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & IDocType & {
|
|
53
32
|
_id: import("mongoose").Types.ObjectId;
|
|
54
|
-
}
|
|
33
|
+
} & {
|
|
34
|
+
__v: number;
|
|
35
|
+
}) | null>;
|
|
55
36
|
}
|
|
56
37
|
export {};
|