@chevre/domain 24.0.0-alpha.27 → 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.
Files changed (78) hide show
  1. package/lib/chevre/errorHandler.js +1 -1
  2. package/lib/chevre/repo/accountTitle.d.ts +7 -3
  3. package/lib/chevre/repo/action/acceptCOAOffer.js +0 -2
  4. package/lib/chevre/repo/action/actionProcess.d.ts +1 -1
  5. package/lib/chevre/repo/action/actionProcess.js +3 -3
  6. package/lib/chevre/repo/action.d.ts +8 -7
  7. package/lib/chevre/repo/action.js +0 -2
  8. package/lib/chevre/repo/aggregateOffer.d.ts +7 -3
  9. package/lib/chevre/repo/assetTransaction.d.ts +48 -22
  10. package/lib/chevre/repo/categoryCode.d.ts +8 -3
  11. package/lib/chevre/repo/comment.d.ts +7 -3
  12. package/lib/chevre/repo/creativeWork.d.ts +8 -7
  13. package/lib/chevre/repo/customer.d.ts +8 -3
  14. package/lib/chevre/repo/event.d.ts +11 -23
  15. package/lib/chevre/repo/event.js +22 -23
  16. package/lib/chevre/repo/eventSeries.d.ts +10 -4
  17. package/lib/chevre/repo/identity.d.ts +12 -3
  18. package/lib/chevre/repo/identityProvider.d.ts +7 -18
  19. package/lib/chevre/repo/issuer.d.ts +8 -8
  20. package/lib/chevre/repo/member.d.ts +7 -3
  21. package/lib/chevre/repo/merchantReturnPolicy.d.ts +7 -3
  22. package/lib/chevre/repo/message.js +1 -1
  23. package/lib/chevre/repo/mongoose/schemas/acceptedPaymentMethod.d.ts +1 -1
  24. package/lib/chevre/repo/mongoose/schemas/action.d.ts +1 -1
  25. package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +2 -2
  26. package/lib/chevre/repo/mongoose/schemas/aggregateOffer.d.ts +1 -1
  27. package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +1 -1
  28. package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +2 -2
  29. package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +2 -2
  30. package/lib/chevre/repo/mongoose/schemas/customer.d.ts +2 -2
  31. package/lib/chevre/repo/mongoose/schemas/customerType.d.ts +2 -2
  32. package/lib/chevre/repo/mongoose/schemas/eventOffer.d.ts +1 -1
  33. package/lib/chevre/repo/mongoose/schemas/identity.d.ts +1 -1
  34. package/lib/chevre/repo/mongoose/schemas/identityProvider.d.ts +1 -1
  35. package/lib/chevre/repo/mongoose/schemas/issuer.d.ts +1 -1
  36. package/lib/chevre/repo/mongoose/schemas/member/global.d.ts +1 -1
  37. package/lib/chevre/repo/mongoose/schemas/message.d.ts +2 -2
  38. package/lib/chevre/repo/mongoose/schemas/movieTicketTypes.d.ts +1 -1
  39. package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +1 -1
  40. package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.d.ts +1 -1
  41. package/lib/chevre/repo/mongoose/schemas/offerItemCondition.d.ts +2 -2
  42. package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +2 -2
  43. package/lib/chevre/repo/mongoose/schemas/paymentService.d.ts +1 -1
  44. package/lib/chevre/repo/mongoose/schemas/paymentServiceChannel.d.ts +1 -1
  45. package/lib/chevre/repo/mongoose/schemas/potentialAction.d.ts +1 -1
  46. package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +3 -1
  47. package/lib/chevre/repo/mongoose/schemas/product.d.ts +1 -1
  48. package/lib/chevre/repo/mongoose/schemas/productModel.d.ts +1 -1
  49. package/lib/chevre/repo/mongoose/schemas/project.d.ts +1 -1
  50. package/lib/chevre/repo/mongoose/schemas/schedule.d.ts +1 -1
  51. package/lib/chevre/repo/mongoose/schemas/seller.d.ts +1 -1
  52. package/lib/chevre/repo/mongoose/schemas/sellerReturnPolicy.d.ts +1 -1
  53. package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +1 -1
  54. package/lib/chevre/repo/mongoose/schemas/setting.d.ts +1 -1
  55. package/lib/chevre/repo/mongoose/schemas/task.d.ts +1 -1
  56. package/lib/chevre/repo/mongoose/schemas/ticket.d.ts +1 -1
  57. package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +5 -2
  58. package/lib/chevre/repo/mongoose/schemas/webSite.d.ts +1 -1
  59. package/lib/chevre/repo/movieTicketType.d.ts +2 -1
  60. package/lib/chevre/repo/offerCatalog.d.ts +8 -4
  61. package/lib/chevre/repo/order.d.ts +10 -4
  62. package/lib/chevre/repo/ownershipInfo.d.ts +8 -7
  63. package/lib/chevre/repo/paymentService.d.ts +8 -8
  64. package/lib/chevre/repo/place/movieTheater.d.ts +7 -3
  65. package/lib/chevre/repo/place/screeningRoom.d.ts +7 -3
  66. package/lib/chevre/repo/potentialAction.d.ts +7 -26
  67. package/lib/chevre/repo/priceSpecification.d.ts +47 -22
  68. package/lib/chevre/repo/priceSpecification.js +0 -6
  69. package/lib/chevre/repo/product.d.ts +7 -3
  70. package/lib/chevre/repo/project.d.ts +8 -11
  71. package/lib/chevre/repo/reservation.d.ts +18 -6
  72. package/lib/chevre/repo/reserveInterface.js +4 -4
  73. package/lib/chevre/repo/role.d.ts +39 -3
  74. package/lib/chevre/repo/schedule.js +1 -1
  75. package/lib/chevre/repo/seller.d.ts +7 -50
  76. package/lib/chevre/repo/task.d.ts +7 -67
  77. package/lib/chevre/repo/transaction.d.ts +103 -13
  78. package/package.json +3 -3
@@ -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/identityProvider';
3
4
  export type ISavingIdentityProvider = Pick<factory.identityProvider.IIdentityProvider, 'identifier' | 'project' | 'typeOf'> & {
4
5
  id?: never;
5
6
  };
@@ -32,27 +33,15 @@ export declare class IdentityProviderRepo {
32
33
  id: string;
33
34
  };
34
35
  }): Promise<void>;
35
- getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, {
36
- project: Pick<factory.project.IProject, "id" | "typeOf">;
37
- identifier: string;
38
- typeOf: factory.organizationType.Organization;
39
- }> & {
40
- project: Pick<factory.project.IProject, "id" | "typeOf">;
41
- identifier: string;
42
- typeOf: factory.organizationType.Organization;
43
- } & {
36
+ getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & IDocType & {
44
37
  _id: import("mongoose").Types.ObjectId;
45
- }, QueryOptions<import("mongoose").Document<unknown, {}, {
46
- project: Pick<factory.project.IProject, "id" | "typeOf">;
47
- identifier: string;
48
- typeOf: factory.organizationType.Organization;
49
- }> & {
50
- project: Pick<factory.project.IProject, "id" | "typeOf">;
51
- identifier: string;
52
- typeOf: factory.organizationType.Organization;
53
38
  } & {
39
+ __v: number;
40
+ }, QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & IDocType & {
54
41
  _id: import("mongoose").Types.ObjectId;
55
- }>>;
42
+ } & {
43
+ __v: number;
44
+ }) | null>;
56
45
  unsetUnnecessaryFields(params: {
57
46
  filter: any;
58
47
  $unset: any;
@@ -35,22 +35,22 @@ export declare class IssuerRepo {
35
35
  id: string;
36
36
  };
37
37
  }): Promise<void>;
38
- getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType> & factory.issuer.IIssuer & {
39
- hasMemberProgram?: (
40
- /**
41
- * 発行者リポジトリ
42
- */
43
- factory.issuer.IMemberProgram & {
38
+ getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<factory.issuer.IIssuer, "id"> & {
39
+ hasMemberProgram?: (factory.issuer.IMemberProgram & {
44
40
  hasTiers?: Pick<factory.issuer.IMemberProgramTier, "identifier" | "typeOf">[];
45
41
  })[];
46
42
  } & {
47
43
  _id: import("mongoose").Types.ObjectId;
48
- }, import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, IDocType> & factory.issuer.IIssuer & {
44
+ } & {
45
+ __v: number;
46
+ }, import("mongoose").QueryOptions<IDocType>, (import("mongoose").Document<unknown, {}, IDocType, {}, {}> & Omit<factory.issuer.IIssuer, "id"> & {
49
47
  hasMemberProgram?: (factory.issuer.IMemberProgram & {
50
48
  hasTiers?: Pick<factory.issuer.IMemberProgramTier, "identifier" | "typeOf">[];
51
49
  })[];
52
50
  } & {
53
51
  _id: import("mongoose").Types.ObjectId;
54
- }>>;
52
+ } & {
53
+ __v: number;
54
+ }) | null>;
55
55
  }
56
56
  export {};
@@ -174,11 +174,15 @@ export declare class MemberRepo {
174
174
  id: string;
175
175
  };
176
176
  }): Promise<string[]>;
177
- getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, factory.iam.IMember> & factory.iam.IMember & {
177
+ getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, factory.iam.IMember, {}, {}> & factory.iam.IMember & {
178
178
  _id: import("mongoose").Types.ObjectId;
179
- }, import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, factory.iam.IMember> & factory.iam.IMember & {
179
+ } & {
180
+ __v: number;
181
+ }, import("mongoose").QueryOptions<factory.iam.IMember>, (import("mongoose").Document<unknown, {}, factory.iam.IMember, {}, {}> & factory.iam.IMember & {
180
182
  _id: import("mongoose").Types.ObjectId;
181
- }>>;
183
+ } & {
184
+ __v: number;
185
+ }) | null>;
182
186
  unsetUnnecessaryFields(params: {
183
187
  filter: any;
184
188
  $unset: any;
@@ -20,7 +20,7 @@ export declare class MerchantReturnPolicyRepo {
20
20
  id: string;
21
21
  };
22
22
  }): Promise<void>;
23
- getCursor(conditions: any, projection: any): import("mongoose").Cursor<Document<unknown, {}, factory.unitPriceOffer.IOfferMerchantReturnPolicy> & Pick<factory.merchantReturnPolicy.IMerchantReturnPolicy, "typeOf" | "customerRemorseReturnFees" | "customerRemorseReturnFeesMovieTicket"> & {
23
+ getCursor(conditions: any, projection: any): import("mongoose").Cursor<Document<unknown, {}, factory.unitPriceOffer.IOfferMerchantReturnPolicy, {}, {}> & Pick<factory.merchantReturnPolicy.IMerchantReturnPolicy, "typeOf" | "customerRemorseReturnFees" | "customerRemorseReturnFeesMovieTicket"> & {
24
24
  customerRemorseReturnFees: factory.merchantReturnPolicy.ICustomerRemorseReturnFees;
25
25
  customerRemorseReturnFeesMovieTicket: factory.merchantReturnPolicy.ICustomerRemorseReturnFeesMovieTicket;
26
26
  project: Pick<factory.project.IProject, "id" | "typeOf">;
@@ -30,7 +30,9 @@ export declare class MerchantReturnPolicyRepo {
30
30
  name?: import("@chevre/factory/lib/multilingualString").IMultilingualString;
31
31
  } & {
32
32
  _id: import("mongoose").Types.ObjectId;
33
- }, import("mongoose").QueryOptions<Document<unknown, {}, factory.unitPriceOffer.IOfferMerchantReturnPolicy> & Pick<factory.merchantReturnPolicy.IMerchantReturnPolicy, "typeOf" | "customerRemorseReturnFees" | "customerRemorseReturnFeesMovieTicket"> & {
33
+ } & {
34
+ __v: number;
35
+ }, import("mongoose").QueryOptions<factory.unitPriceOffer.IOfferMerchantReturnPolicy>, (Document<unknown, {}, factory.unitPriceOffer.IOfferMerchantReturnPolicy, {}, {}> & Pick<factory.merchantReturnPolicy.IMerchantReturnPolicy, "typeOf" | "customerRemorseReturnFees" | "customerRemorseReturnFeesMovieTicket"> & {
34
36
  customerRemorseReturnFees: factory.merchantReturnPolicy.ICustomerRemorseReturnFees;
35
37
  customerRemorseReturnFeesMovieTicket: factory.merchantReturnPolicy.ICustomerRemorseReturnFeesMovieTicket;
36
38
  project: Pick<factory.project.IProject, "id" | "typeOf">;
@@ -40,5 +42,7 @@ export declare class MerchantReturnPolicyRepo {
40
42
  name?: import("@chevre/factory/lib/multilingualString").IMultilingualString;
41
43
  } & {
42
44
  _id: import("mongoose").Types.ObjectId;
43
- }>>;
45
+ } & {
46
+ __v: number;
47
+ }) | null>;
44
48
  }
@@ -125,7 +125,7 @@ class MessageRepo {
125
125
  // throw new factory.errors.ArgumentNull('text');
126
126
  // }
127
127
  // // リソースのユニークネスを保証するfilter
128
- // const filter: Filter<IEmailMessage> = {
128
+ // const filter: RootFilterQuery<IEmailMessage> = {
129
129
  // // typeOf: { $eq: factory.creativeWorkType.EmailMessage },
130
130
  // 'project.id': { $eq: project.id },
131
131
  // identifier: { $eq: identifier }
@@ -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.acceptedPaymentMethodOffer.IAcceptedPaymentMethodOffer;
3
+ type IDocType = Omit<factory.acceptedPaymentMethodOffer.IAcceptedPaymentMethodOffer, 'id'>;
4
4
  type IModel = Model<IDocType>;
5
5
  type ISchemaDefinition = SchemaDefinition<IDocType>;
6
6
  type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
@@ -9,4 +9,4 @@ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocT
9
9
  declare const modelName = "Action";
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.additionalProperty.IAdditionalProperty;
3
+ type IDocType = Omit<factory.additionalProperty.IAdditionalProperty, '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 = "AdditionalProperty";
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 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
- export type IDocType = factory.priceSpecification.IPriceSpecification<factory.priceSpecificationType> & {
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 IDocType = factory.transaction.ITransaction<factory.transactionType>;
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, Document, FilterQuery } from 'mongoose';
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
- }>, import("mongoose").QueryOptions<Document<unknown, {}, IDocType> & factory.offerCatalog.IOfferCatalog & {
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
- }, import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, Omit<factory.order.IOrder, "id"> & {
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
- }>, import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood> & {
83
- _id: string;
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
  */