@chevre/domain 22.2.0-alpha.21 → 22.2.0-alpha.23

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 (169) hide show
  1. package/example/src/chevre/createProject.ts +19 -0
  2. package/example/src/chevre/migrateDeleteTransactionTasks.ts +1 -1
  3. package/example/src/chevre/projectFields.ts +6 -7
  4. package/example/src/chevre/{projectEventFieldsById.ts → projectFieldsById.ts} +6 -11
  5. package/example/src/chevre/searchTransactions.ts +1 -1
  6. package/example/src/chevre/unsetUnnecessaryFields.ts +2 -15
  7. package/lib/chevre/repo/accountTitle.d.ts +9 -3
  8. package/lib/chevre/repo/accountingReport.d.ts +2 -15
  9. package/lib/chevre/repo/action.d.ts +55 -3
  10. package/lib/chevre/repo/aggregateReservation.d.ts +1 -14
  11. package/lib/chevre/repo/assetTransaction.d.ts +134 -7
  12. package/lib/chevre/repo/assetTransaction.js +2 -2
  13. package/lib/chevre/repo/categoryCode.d.ts +4 -0
  14. package/lib/chevre/repo/categoryCode.js +6 -0
  15. package/lib/chevre/repo/comment.d.ts +5 -1
  16. package/lib/chevre/repo/creativeWork.d.ts +14 -2
  17. package/lib/chevre/repo/customer.d.ts +5 -1
  18. package/lib/chevre/repo/customerType.d.ts +1 -1
  19. package/lib/chevre/repo/event.d.ts +49 -2
  20. package/lib/chevre/repo/member.d.ts +5 -1
  21. package/lib/chevre/repo/merchantReturnPolicy.d.ts +22 -2
  22. package/lib/chevre/repo/message.d.ts +1 -15
  23. package/lib/chevre/repo/mongoose/schemas/account.d.ts +8 -3
  24. package/lib/chevre/repo/mongoose/schemas/account.js +1 -1
  25. package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +8 -3
  26. package/lib/chevre/repo/mongoose/schemas/accountTitle.js +2 -2
  27. package/lib/chevre/repo/mongoose/schemas/accountTransaction.d.ts +8 -3
  28. package/lib/chevre/repo/mongoose/schemas/accountTransaction.js +1 -1
  29. package/lib/chevre/repo/mongoose/schemas/accountingReport.d.ts +22 -3
  30. package/lib/chevre/repo/mongoose/schemas/accountingReport.js +1 -1
  31. package/lib/chevre/repo/mongoose/schemas/action.d.ts +12 -3
  32. package/lib/chevre/repo/mongoose/schemas/action.js +1 -1
  33. package/lib/chevre/repo/mongoose/schemas/actionRecipe.d.ts +14 -3
  34. package/lib/chevre/repo/mongoose/schemas/actionRecipe.js +2 -5
  35. package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +8 -3
  36. package/lib/chevre/repo/mongoose/schemas/additionalProperty.js +12 -12
  37. package/lib/chevre/repo/mongoose/schemas/aggregateOffer.d.ts +11 -3
  38. package/lib/chevre/repo/mongoose/schemas/aggregateOffer.js +1 -1
  39. package/lib/chevre/repo/mongoose/schemas/aggregateReservation.d.ts +22 -3
  40. package/lib/chevre/repo/mongoose/schemas/aggregateReservation.js +1 -1
  41. package/lib/chevre/repo/mongoose/schemas/aggregation.d.ts +7 -3
  42. package/lib/chevre/repo/mongoose/schemas/aggregation.js +2 -1
  43. package/lib/chevre/repo/mongoose/schemas/assetTransaction.d.ts +10 -3
  44. package/lib/chevre/repo/mongoose/schemas/assetTransaction.js +1 -1
  45. package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +8 -3
  46. package/lib/chevre/repo/mongoose/schemas/authorization.js +1 -1
  47. package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +8 -3
  48. package/lib/chevre/repo/mongoose/schemas/categoryCode.js +1 -1
  49. package/lib/chevre/repo/mongoose/schemas/comments.d.ts +8 -3
  50. package/lib/chevre/repo/mongoose/schemas/comments.js +1 -1
  51. package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +10 -3
  52. package/lib/chevre/repo/mongoose/schemas/creativeWork.js +2 -2
  53. package/lib/chevre/repo/mongoose/schemas/customer.d.ts +8 -3
  54. package/lib/chevre/repo/mongoose/schemas/customer.js +1 -1
  55. package/lib/chevre/repo/mongoose/schemas/customerType.d.ts +9 -3
  56. package/lib/chevre/repo/mongoose/schemas/customerType.js +1 -1
  57. package/lib/chevre/repo/mongoose/schemas/emailMessages.d.ts +8 -3
  58. package/lib/chevre/repo/mongoose/schemas/emailMessages.js +1 -1
  59. package/lib/chevre/repo/mongoose/schemas/event.d.ts +19 -3
  60. package/lib/chevre/repo/mongoose/schemas/event.js +1 -1
  61. package/lib/chevre/repo/mongoose/schemas/member.d.ts +8 -3
  62. package/lib/chevre/repo/mongoose/schemas/member.js +1 -1
  63. package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.d.ts +8 -3
  64. package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.js +1 -1
  65. package/lib/chevre/repo/mongoose/schemas/message.d.ts +23 -3
  66. package/lib/chevre/repo/mongoose/schemas/message.js +1 -1
  67. package/lib/chevre/repo/mongoose/schemas/note.d.ts +8 -3
  68. package/lib/chevre/repo/mongoose/schemas/note.js +1 -1
  69. package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +12 -3
  70. package/lib/chevre/repo/mongoose/schemas/offerCatalog.js +1 -1
  71. package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.d.ts +12 -3
  72. package/lib/chevre/repo/mongoose/schemas/offerCatalogItem.js +1 -1
  73. package/lib/chevre/repo/mongoose/schemas/offerItemCondition.d.ts +8 -3
  74. package/lib/chevre/repo/mongoose/schemas/offerItemCondition.js +1 -1
  75. package/lib/chevre/repo/mongoose/schemas/order.d.ts +10 -3
  76. package/lib/chevre/repo/mongoose/schemas/order.js +1 -1
  77. package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +10 -3
  78. package/lib/chevre/repo/mongoose/schemas/ownershipInfo.js +1 -1
  79. package/lib/chevre/repo/mongoose/schemas/paymentService.d.ts +10 -3
  80. package/lib/chevre/repo/mongoose/schemas/paymentService.js +1 -1
  81. package/lib/chevre/repo/mongoose/schemas/place.d.ts +16 -3
  82. package/lib/chevre/repo/mongoose/schemas/place.js +1 -1
  83. package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +11 -3
  84. package/lib/chevre/repo/mongoose/schemas/priceSpecification.js +1 -1
  85. package/lib/chevre/repo/mongoose/schemas/product.d.ts +12 -3
  86. package/lib/chevre/repo/mongoose/schemas/product.js +1 -1
  87. package/lib/chevre/repo/mongoose/schemas/productModel.d.ts +30 -3
  88. package/lib/chevre/repo/mongoose/schemas/productModel.js +1 -1
  89. package/lib/chevre/repo/mongoose/schemas/project.d.ts +12 -3
  90. package/lib/chevre/repo/mongoose/schemas/project.js +3 -3
  91. package/lib/chevre/repo/mongoose/schemas/reservation.d.ts +12 -3
  92. package/lib/chevre/repo/mongoose/schemas/reservation.js +5 -5
  93. package/lib/chevre/repo/mongoose/schemas/role.d.ts +9 -3
  94. package/lib/chevre/repo/mongoose/schemas/role.js +1 -1
  95. package/lib/chevre/repo/mongoose/schemas/seller.d.ts +8 -3
  96. package/lib/chevre/repo/mongoose/schemas/seller.js +1 -1
  97. package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +8 -3
  98. package/lib/chevre/repo/mongoose/schemas/serviceOutput.js +1 -1
  99. package/lib/chevre/repo/mongoose/schemas/task.d.ts +8 -3
  100. package/lib/chevre/repo/mongoose/schemas/task.js +1 -1
  101. package/lib/chevre/repo/mongoose/schemas/telemetry.d.ts +7 -3
  102. package/lib/chevre/repo/mongoose/schemas/telemetry.js +2 -1
  103. package/lib/chevre/repo/mongoose/schemas/ticket.d.ts +26 -3
  104. package/lib/chevre/repo/mongoose/schemas/ticket.js +1 -1
  105. package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +8 -3
  106. package/lib/chevre/repo/mongoose/schemas/transaction.js +2 -2
  107. package/lib/chevre/repo/mongoose/schemas/trip.d.ts +8 -3
  108. package/lib/chevre/repo/mongoose/schemas/trip.js +3 -3
  109. package/lib/chevre/repo/offer.d.ts +13 -4
  110. package/lib/chevre/repo/offerCatalog.d.ts +15 -2
  111. package/lib/chevre/repo/order.d.ts +13 -1
  112. package/lib/chevre/repo/ownershipInfo.d.ts +13 -1
  113. package/lib/chevre/repo/place/movieTheater.d.ts +54 -2
  114. package/lib/chevre/repo/priceSpecification.d.ts +42 -1
  115. package/lib/chevre/repo/product.d.ts +6 -1
  116. package/lib/chevre/repo/productModel.d.ts +1 -22
  117. package/lib/chevre/repo/project.d.ts +21 -1
  118. package/lib/chevre/repo/project.js +2 -2
  119. package/lib/chevre/repo/reservation.d.ts +35 -3
  120. package/lib/chevre/repo/reservation.js +1 -1
  121. package/lib/chevre/repo/role.d.ts +2 -9
  122. package/lib/chevre/repo/role.js +20 -10
  123. package/lib/chevre/repo/seller.d.ts +54 -2
  124. package/lib/chevre/repo/task.d.ts +64 -3
  125. package/lib/chevre/repo/telemetry.d.ts +3 -2
  126. package/lib/chevre/repo/ticket.d.ts +2 -19
  127. package/lib/chevre/repo/transaction.d.ts +30 -14
  128. package/lib/chevre/repo/transaction.js +106 -77
  129. package/lib/chevre/service/assetTransaction/cancelReservation.d.ts +1 -1
  130. package/lib/chevre/service/offer/event/authorize/factory.d.ts +3 -3
  131. package/lib/chevre/service/offer/event/authorize/processStartReserve4chevre.d.ts +3 -2
  132. package/lib/chevre/service/offer/event/authorize.d.ts +1 -1
  133. package/lib/chevre/service/offer/event/authorize.js +1 -1
  134. package/lib/chevre/service/offer/event/voidTransaction.js +2 -2
  135. package/lib/chevre/service/offer/event/voidTransactionByActionId.js +1 -1
  136. package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer/authorize.d.ts +2 -2
  137. package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer/factory.d.ts +3 -3
  138. package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer.js +2 -2
  139. package/lib/chevre/service/offer/eventServiceByCOA/authorize.d.ts +4 -2
  140. package/lib/chevre/service/offer/eventServiceByCOA/authorize.js +1 -1
  141. package/lib/chevre/service/offer/eventServiceByCOA/changeOffers.js +1 -1
  142. package/lib/chevre/service/offer/eventServiceByCOA/factory.d.ts +8 -5
  143. package/lib/chevre/service/offer/eventServiceByCOA/validateAcceptedOffers.d.ts +1 -1
  144. package/lib/chevre/service/offer/moneyTransfer/authorize.js +1 -1
  145. package/lib/chevre/service/offer/moneyTransfer/voidTransaction.js +1 -1
  146. package/lib/chevre/service/offer/product.js +2 -2
  147. package/lib/chevre/service/order/findPlaceOrderTransaction.js +1 -1
  148. package/lib/chevre/service/order/onOrderStatusChanged/onOrderCancelled/factory.d.ts +1 -1
  149. package/lib/chevre/service/order/onOrderStatusChanged/onOrderDeliveredPartially/factory.d.ts +1 -1
  150. package/lib/chevre/service/order/onOrderStatusChanged/onOrderInTransit.js +1 -1
  151. package/lib/chevre/service/order/onOrderStatusChanged/onOrderReturned/factory.d.ts +1 -1
  152. package/lib/chevre/service/order/placeOrder/createPlacingOrderFromExistingTransaction.js +1 -1
  153. package/lib/chevre/service/order/returnOrder.js +1 -1
  154. package/lib/chevre/service/payment/any.js +5 -5
  155. package/lib/chevre/service/payment.d.ts +1 -1
  156. package/lib/chevre/service/report/telemetry.js +2 -2
  157. package/lib/chevre/service/task/onResourceUpdated.js +14 -2
  158. package/lib/chevre/service/task/returnPayTransaction.js +1 -1
  159. package/lib/chevre/service/transaction/deleteTransaction.js +2 -2
  160. package/lib/chevre/service/transaction/moneyTransfer.js +3 -3
  161. package/lib/chevre/service/transaction/placeOrder/confirm.js +1 -1
  162. package/lib/chevre/service/transaction/placeOrder/exportTasksById.js +1 -1
  163. package/lib/chevre/service/transaction/placeOrder/start.js +1 -1
  164. package/lib/chevre/service/transaction/returnOrder.js +2 -2
  165. package/lib/chevre/service/transaction.js +1 -1
  166. package/package.json +3 -3
  167. package/example/src/chevre/findTransactionById.ts +0 -23
  168. package/example/src/chevre/findTransactionInProgressById.ts +0 -23
  169. package/example/src/chevre/migrateTransactionObjectPaymentMethods.ts +0 -154
@@ -23,9 +23,10 @@
23
23
  /// <reference types="mongoose/types/virtuals" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  import type { BulkWriteResult } from 'mongodb';
26
- import type { Connection, FilterQuery } from 'mongoose';
26
+ import type { Connection, Document, FilterQuery } from 'mongoose';
27
27
  import * as factory from '../factory';
28
28
  import * as EventFactory from '../factory/event';
29
+ import { IDocType } from './mongoose/schemas/event';
29
30
  export interface IAttributes4patchUpdate<T extends factory.eventType> {
30
31
  typeOf: T;
31
32
  eventStatus?: factory.eventStatusType;
@@ -336,7 +337,53 @@ export declare class EventRepo {
336
337
  validationErrors: import("mongoose").Error[];
337
338
  } | undefined;
338
339
  }>;
339
- getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<any, import("mongoose").QueryOptions<any>>;
340
+ getCursor(conditions: FilterQuery<any>, projection: any): import("mongoose").Cursor<Document<unknown, {}, IDocType> & Omit<(import("@chevre/factory/lib/event/anyEvent").IAttributes & {
341
+ _id: string;
342
+ } & Required<{
343
+ /**
344
+ * イベントリポジトリ
345
+ */
346
+ _id: string;
347
+ }>) | (import("@chevre/factory/lib/event/screeningEvent").IAttributes & {
348
+ _id: string;
349
+ alternateName?: any;
350
+ aggregateOffer?: import("@chevre/factory/lib/event/anyEvent").IAggregateOffer | undefined;
351
+ } & Required<{
352
+ /**
353
+ * イベントリポジトリ
354
+ */
355
+ _id: string;
356
+ }>) | (import("@chevre/factory/lib/event/screeningEventSeries").IAttributes & {
357
+ _id: string;
358
+ } & Required<{
359
+ /**
360
+ * イベントリポジトリ
361
+ */
362
+ _id: string;
363
+ }>), never>, import("mongoose").QueryOptions<Document<unknown, {}, IDocType> & Omit<(import("@chevre/factory/lib/event/anyEvent").IAttributes & {
364
+ _id: string;
365
+ } & Required<{
366
+ /**
367
+ * イベントリポジトリ
368
+ */
369
+ _id: string;
370
+ }>) | (import("@chevre/factory/lib/event/screeningEvent").IAttributes & {
371
+ _id: string;
372
+ alternateName?: any;
373
+ aggregateOffer?: import("@chevre/factory/lib/event/anyEvent").IAggregateOffer | undefined;
374
+ } & Required<{
375
+ /**
376
+ * イベントリポジトリ
377
+ */
378
+ _id: string;
379
+ }>) | (import("@chevre/factory/lib/event/screeningEventSeries").IAttributes & {
380
+ _id: string;
381
+ } & Required<{
382
+ /**
383
+ * イベントリポジトリ
384
+ */
385
+ _id: string;
386
+ }>), never>>>;
340
387
  addAvailableAtOrFrom(params: {
341
388
  id: string;
342
389
  offers: {
@@ -153,7 +153,11 @@ export declare class MemberRepo {
153
153
  id: string;
154
154
  };
155
155
  }): Promise<string[]>;
156
- getCursor(conditions: any, projection: any): import("mongoose").Cursor<any, import("mongoose").QueryOptions<any>>;
156
+ getCursor(conditions: any, projection: any): import("mongoose").Cursor<import("mongoose").Document<unknown, {}, factory.iam.IMember> & Omit<factory.iam.IMember & {
157
+ _id: import("mongoose").Types.ObjectId;
158
+ }, never>, import("mongoose").QueryOptions<import("mongoose").Document<unknown, {}, factory.iam.IMember> & Omit<factory.iam.IMember & {
159
+ _id: import("mongoose").Types.ObjectId;
160
+ }, never>>>;
157
161
  unsetUnnecessaryFields(params: {
158
162
  filter: any;
159
163
  $unset: any;
@@ -22,7 +22,7 @@
22
22
  /// <reference types="mongoose/types/validation" />
23
23
  /// <reference types="mongoose/types/virtuals" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
- import type { Connection } from 'mongoose';
25
+ import type { Connection, Document } from 'mongoose';
26
26
  import * as factory from '../factory';
27
27
  /**
28
28
  * 返品ポリシーリポジトリ
@@ -44,5 +44,25 @@ export declare class MerchantReturnPolicyRepo {
44
44
  id: string;
45
45
  };
46
46
  }): Promise<void>;
47
- getCursor(conditions: any, projection: any): import("mongoose").Cursor<any, import("mongoose").QueryOptions<any>>;
47
+ getCursor(conditions: any, projection: any): import("mongoose").Cursor<Document<unknown, {}, factory.unitPriceOffer.IOfferMerchantReturnPolicy> & Omit<Pick<factory.merchantReturnPolicy.IMerchantReturnPolicy, "typeOf" | "customerRemorseReturnFees" | "customerRemorseReturnFeesMovieTicket"> & {
48
+ customerRemorseReturnFees: factory.merchantReturnPolicy.ReturnFeesEnumeration;
49
+ customerRemorseReturnFeesMovieTicket: factory.merchantReturnPolicy.ICustomerRemorseReturnFeesMovieTicket;
50
+ project: Pick<factory.project.IProject, "id" | "typeOf">;
51
+ additionalProperty?: import("@chevre/factory/lib/propertyValue").IPropertyValue<string>[] | undefined;
52
+ id?: string | undefined;
53
+ identifier: string;
54
+ name?: import("@chevre/factory/lib/multilingualString").IMultilingualString | undefined;
55
+ } & {
56
+ _id: import("mongoose").Types.ObjectId;
57
+ }, never>, import("mongoose").QueryOptions<Document<unknown, {}, factory.unitPriceOffer.IOfferMerchantReturnPolicy> & Omit<Pick<factory.merchantReturnPolicy.IMerchantReturnPolicy, "typeOf" | "customerRemorseReturnFees" | "customerRemorseReturnFeesMovieTicket"> & {
58
+ customerRemorseReturnFees: factory.merchantReturnPolicy.ReturnFeesEnumeration;
59
+ customerRemorseReturnFeesMovieTicket: factory.merchantReturnPolicy.ICustomerRemorseReturnFeesMovieTicket;
60
+ project: Pick<factory.project.IProject, "id" | "typeOf">;
61
+ additionalProperty?: import("@chevre/factory/lib/propertyValue").IPropertyValue<string>[] | undefined;
62
+ id?: string | undefined;
63
+ identifier: string;
64
+ name?: import("@chevre/factory/lib/multilingualString").IMultilingualString | undefined;
65
+ } & {
66
+ _id: import("mongoose").Types.ObjectId;
67
+ }, never>>>;
48
68
  }
@@ -1,21 +1,7 @@
1
1
  import type { BulkWriteResult } from 'mongodb';
2
2
  import type { Connection } from 'mongoose';
3
+ import { IEmailMessage } from './mongoose/schemas/message';
3
4
  import * as factory from '../factory';
4
- type IEmailMessage = factory.creativeWork.message.email.ICreativeWork & {
5
- datePublished: Date;
6
- mainEntity: Pick<factory.order.ISimpleOrder, 'orderNumber' | 'typeOf'>;
7
- project: {
8
- id: string;
9
- typeOf: factory.organizationType.Project;
10
- };
11
- provider: {
12
- /**
13
- * 販売者ID
14
- */
15
- id: string;
16
- typeOf: factory.organizationType.Corporation;
17
- };
18
- };
19
5
  type IFindByIdentifierResult = Pick<IEmailMessage, 'about' | 'identifier' | 'name' | 'sender' | 'text' | 'toRecipient' | 'typeOf'>;
20
6
  interface ISearchConditions {
21
7
  limit?: number;
@@ -1,5 +1,10 @@
1
- import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
1
+ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import * as factory from '../../../factory';
3
+ type IDocType = factory.account.IAccount;
4
+ type IModel = Model<IDocType>;
5
+ type ISchemaDefinition = SchemaDefinition<IDocType>;
6
+ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
2
7
  declare const modelName = "Account";
3
- declare function createSchema(): Schema;
8
+ declare function createSchema(): ISchema;
4
9
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
5
- export { modelName, indexes, createSchema };
10
+ export { createSchema, IModel, indexes, modelName };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createSchema = exports.indexes = exports.modelName = void 0;
3
+ exports.modelName = exports.indexes = exports.createSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const writeConcern_1 = require("../writeConcern");
6
6
  const settings_1 = require("../../../settings");
@@ -1,5 +1,10 @@
1
- import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
1
+ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import * as factory from '../../../factory';
3
+ type IDocType = factory.accountTitle.IAccountTitle;
4
+ type IModel = Model<IDocType>;
5
+ type ISchemaDefinition = SchemaDefinition<IDocType>;
6
+ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
2
7
  declare const modelName = "AccountTitle";
3
- declare function createSchema(): Schema;
8
+ declare function createSchema(): ISchema;
4
9
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
5
- export { modelName, indexes, createSchema };
10
+ export { createSchema, IModel, indexes, modelName };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createSchema = exports.indexes = exports.modelName = void 0;
3
+ exports.modelName = exports.indexes = exports.createSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const writeConcern_1 = require("../writeConcern");
6
6
  const settings_1 = require("../../../settings");
@@ -13,7 +13,7 @@ const schemaDefinition = {
13
13
  required: true
14
14
  },
15
15
  codeValue: String,
16
- alternateName: String,
16
+ // alternateName: String,
17
17
  name: String,
18
18
  description: String,
19
19
  inCodeSet: mongoose_1.SchemaTypes.Mixed,
@@ -1,5 +1,10 @@
1
- import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
1
+ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import * as factory from '../../../factory';
3
+ type IDocType = factory.account.transaction.ITransaction<factory.account.transactionType>;
4
+ type IModel = Model<IDocType>;
5
+ type ISchemaDefinition = SchemaDefinition<IDocType>;
6
+ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
2
7
  declare const modelName = "AccountTransaction";
3
- declare function createSchema(): Schema;
8
+ declare function createSchema(): ISchema;
4
9
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
5
- export { modelName, indexes, createSchema };
10
+ export { createSchema, IModel, indexes, modelName };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createSchema = exports.indexes = exports.modelName = void 0;
3
+ exports.modelName = exports.indexes = exports.createSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const writeConcern_1 = require("../writeConcern");
6
6
  const settings_1 = require("../../../settings");
@@ -1,5 +1,24 @@
1
- import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
1
+ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import * as factory from '../../../factory';
3
+ export type IOrder4report = factory.report.accountingReport.IOrderAsMainEntity;
4
+ export interface IChildReport {
5
+ typeOf: 'Report';
6
+ mainEntity: factory.report.accountingReport.IAction;
7
+ }
8
+ export interface IAccountingReport {
9
+ project: {
10
+ id: string;
11
+ typeOf: factory.organizationType.Project;
12
+ };
13
+ typeOf: 'Report';
14
+ hasPart: IChildReport[];
15
+ mainEntity: IOrder4report;
16
+ }
17
+ type IDocType = IAccountingReport;
18
+ type IModel = Model<IDocType>;
19
+ type ISchemaDefinition = SchemaDefinition<IDocType>;
20
+ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
2
21
  declare const modelName = "AccountingReport";
3
- declare function createSchema(): Schema;
22
+ declare function createSchema(): ISchema;
4
23
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
5
- export { modelName, indexes, createSchema };
24
+ export { createSchema, IModel, indexes, modelName };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createSchema = exports.indexes = exports.modelName = void 0;
3
+ exports.modelName = exports.indexes = exports.createSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const writeConcern_1 = require("../writeConcern");
6
6
  const settings_1 = require("../../../settings");
@@ -1,5 +1,14 @@
1
- import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
1
+ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import * as factory from '../../../factory';
3
+ type IDocType = (factory.action.IAction<factory.action.IAttributes<factory.actionType, any, any>> | factory.action.transfer.moneyTransfer.IAction | (factory.action.update.replace.IAction<factory.action.update.replace.IAttributes<any, any>> & {
4
+ targetCollection?: any;
5
+ })) & {
6
+ cancelAction?: any;
7
+ };
8
+ type IModel = Model<IDocType>;
9
+ type ISchemaDefinition = SchemaDefinition<IDocType>;
10
+ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
2
11
  declare const modelName = "Action";
3
12
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
4
- declare function createSchema(): Schema;
5
- export { modelName, indexes, createSchema };
13
+ declare function createSchema(): ISchema;
14
+ export { createSchema, IModel, indexes, modelName };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createSchema = exports.indexes = exports.modelName = void 0;
3
+ exports.modelName = exports.indexes = exports.createSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const writeConcern_1 = require("../writeConcern");
6
6
  const settings_1 = require("../../../settings");
@@ -1,5 +1,16 @@
1
- import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
1
+ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import * as factory from '../../../factory';
3
+ type IDocType = factory.recipe.IRecipe & {
4
+ recipeFor: {
5
+ id: string;
6
+ };
7
+ dateCreated?: Date;
8
+ dateModified?: Date;
9
+ };
10
+ type IModel = Model<IDocType>;
11
+ type ISchemaDefinition = SchemaDefinition<IDocType>;
12
+ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
2
13
  declare const modelName = "ActionRecipe";
3
14
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
4
- declare function createSchema(): Schema;
5
- export { modelName, indexes, createSchema };
15
+ declare function createSchema(): ISchema;
16
+ export { createSchema, IModel, indexes, modelName };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createSchema = exports.indexes = exports.modelName = void 0;
3
+ exports.modelName = exports.indexes = exports.createSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const writeConcern_1 = require("../writeConcern");
6
6
  const settings_1 = require("../../../settings");
@@ -19,10 +19,7 @@ const schemaDefinition = {
19
19
  type: String,
20
20
  required: true
21
21
  },
22
- step: {
23
- type: [mongoose_1.SchemaTypes.Mixed],
24
- required: true
25
- },
22
+ step: [mongoose_1.SchemaTypes.Mixed],
26
23
  recipeFor: {
27
24
  type: mongoose_1.SchemaTypes.Mixed,
28
25
  required: true
@@ -1,5 +1,10 @@
1
- import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
1
+ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import * as factory from '../../../factory';
3
+ type IDocType = factory.additionalProperty.IAdditionalProperty;
4
+ type IModel = Model<IDocType>;
5
+ type ISchemaDefinition = SchemaDefinition<IDocType>;
6
+ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
2
7
  declare const modelName = "AdditionalProperty";
3
- declare function createSchema(): Schema;
4
8
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
5
- export { modelName, indexes, createSchema };
9
+ declare function createSchema(): ISchema;
10
+ export { createSchema, IModel, indexes, modelName };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createSchema = exports.indexes = exports.modelName = void 0;
3
+ exports.modelName = exports.indexes = exports.createSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const writeConcern_1 = require("../writeConcern");
6
6
  const settings_1 = require("../../../settings");
@@ -45,17 +45,6 @@ const schemaOptions = {
45
45
  versionKey: false
46
46
  }
47
47
  };
48
- /**
49
- * 追加特性スキーマ
50
- */
51
- let schema;
52
- function createSchema() {
53
- if (schema === undefined) {
54
- schema = new mongoose_1.Schema(schemaDefinition, schemaOptions);
55
- }
56
- return schema;
57
- }
58
- exports.createSchema = createSchema;
59
48
  const indexes = [
60
49
  [
61
50
  { createdAt: 1 },
@@ -104,3 +93,14 @@ const indexes = [
104
93
  ]
105
94
  ];
106
95
  exports.indexes = indexes;
96
+ /**
97
+ * 追加特性スキーマ
98
+ */
99
+ let schema;
100
+ function createSchema() {
101
+ if (schema === undefined) {
102
+ schema = new mongoose_1.Schema(schemaDefinition, schemaOptions);
103
+ }
104
+ return schema;
105
+ }
106
+ exports.createSchema = createSchema;
@@ -1,5 +1,13 @@
1
- import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
1
+ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import * as factory from '../../../factory';
3
+ export interface IDocType extends factory.aggregateOffer.IAggregateOffer {
4
+ _id: string;
5
+ includedInDataCatalog?: any[];
6
+ }
7
+ type IModel = Model<IDocType>;
8
+ type ISchemaDefinition = SchemaDefinition<IDocType>;
9
+ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
2
10
  declare const modelName = "AggregateOffer";
3
11
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
4
- declare function createSchema(): Schema;
5
- export { modelName, indexes, createSchema };
12
+ declare function createSchema(): ISchema;
13
+ export { createSchema, IModel, indexes, modelName };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createSchema = exports.indexes = exports.modelName = void 0;
3
+ exports.modelName = exports.indexes = exports.createSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const writeConcern_1 = require("../writeConcern");
6
6
  const settings_1 = require("../../../settings");
@@ -1,5 +1,24 @@
1
- import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
1
+ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import * as factory from '../../../factory';
3
+ export interface IAggregateReservation {
4
+ project: {
5
+ id: string;
6
+ typeOf: factory.organizationType.Project;
7
+ };
8
+ typeOf: 'AggregateReservation';
9
+ reservationFor: {
10
+ id: string;
11
+ typeOf: factory.eventType;
12
+ startDate: Date;
13
+ };
14
+ aggregateEntranceGate?: factory.event.event.IAggregateEntranceGate;
15
+ aggregateOffer?: factory.event.event.IAggregateOffer;
16
+ }
17
+ type IDocType = IAggregateReservation;
18
+ type IModel = Model<IDocType>;
19
+ type ISchemaDefinition = SchemaDefinition<IDocType>;
20
+ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
2
21
  declare const modelName = "AggregateReservation";
3
22
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
4
- declare function createSchema(): Schema;
5
- export { modelName, indexes, createSchema };
23
+ declare function createSchema(): ISchema;
24
+ export { createSchema, IModel, indexes, modelName };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createSchema = exports.indexes = exports.modelName = void 0;
3
+ exports.modelName = exports.indexes = exports.createSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const writeConcern_1 = require("../writeConcern");
6
6
  const settings_1 = require("../../../settings");
@@ -1,5 +1,9 @@
1
- import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
1
+ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ type IDocType = any;
3
+ type IModel = Model<IDocType>;
4
+ type ISchemaDefinition = SchemaDefinition<IDocType>;
5
+ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
2
6
  declare const modelName = "Aggregation";
3
7
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
4
- declare function createSchema(): Schema;
5
- export { modelName, indexes, createSchema };
8
+ declare function createSchema(): ISchema;
9
+ export { createSchema, IModel, indexes, modelName };
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createSchema = exports.indexes = exports.modelName = void 0;
3
+ exports.modelName = exports.indexes = exports.createSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const writeConcern_1 = require("../writeConcern");
6
+ // import * as factory from '../../../factory';
6
7
  const settings_1 = require("../../../settings");
7
8
  const modelName = 'Aggregation';
8
9
  exports.modelName = modelName;
@@ -1,5 +1,12 @@
1
- import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
1
+ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import * as factory from '../../../factory';
3
+ type IDocType = (factory.assetTransaction.ITransaction<factory.assetTransactionType.CancelReservation> | factory.assetTransaction.ITransaction<factory.assetTransactionType.MoneyTransfer> | factory.assetTransaction.ITransaction<factory.assetTransactionType.Pay> | factory.assetTransaction.ITransaction<factory.assetTransactionType.Refund> | factory.assetTransaction.ITransaction<factory.assetTransactionType.RegisterService> | factory.assetTransaction.ITransaction<factory.assetTransactionType.Reserve>) & {
4
+ seller?: any;
5
+ };
6
+ type IModel = Model<IDocType>;
7
+ type ISchemaDefinition = SchemaDefinition<IDocType>;
8
+ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
2
9
  declare const modelName = "AssetTransaction";
3
10
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
4
- declare function createSchema(): Schema;
5
- export { modelName, indexes, createSchema };
11
+ declare function createSchema(): ISchema;
12
+ export { createSchema, IModel, indexes, modelName };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createSchema = exports.indexes = exports.modelName = void 0;
3
+ exports.modelName = exports.indexes = exports.createSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const writeConcern_1 = require("../writeConcern");
6
6
  const settings_1 = require("../../../settings");
@@ -1,5 +1,10 @@
1
- import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
1
+ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import * as factory from '../../../factory';
3
+ type IDocType = Omit<factory.authorization.IAuthorization, 'id'>;
4
+ type IModel = Model<IDocType>;
5
+ type ISchemaDefinition = SchemaDefinition<IDocType>;
6
+ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
2
7
  declare const modelName = "Authorization";
3
8
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
4
- declare function createSchema(): Schema;
5
- export { modelName, indexes, createSchema };
9
+ declare function createSchema(): ISchema;
10
+ export { createSchema, IModel, indexes, modelName };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createSchema = exports.indexes = exports.modelName = void 0;
3
+ exports.modelName = exports.indexes = exports.createSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const writeConcern_1 = require("../writeConcern");
6
6
  const settings_1 = require("../../../settings");
@@ -1,5 +1,10 @@
1
- import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
1
+ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import * as factory from '../../../factory';
3
+ type IDocType = factory.categoryCode.ICategoryCode;
4
+ type IModel = Model<IDocType>;
5
+ type ISchemaDefinition = SchemaDefinition<IDocType>;
6
+ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
2
7
  declare const modelName = "CategoryCode";
3
8
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
4
- declare function createSchema(): Schema;
5
- export { modelName, indexes, createSchema };
9
+ declare function createSchema(): ISchema;
10
+ export { createSchema, IModel, indexes, modelName };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createSchema = exports.indexes = exports.modelName = void 0;
3
+ exports.modelName = exports.indexes = exports.createSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const writeConcern_1 = require("../writeConcern");
6
6
  const settings_1 = require("../../../settings");
@@ -1,5 +1,10 @@
1
- import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
1
+ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import * as factory from '../../../factory';
3
+ type IDocType = factory.creativeWork.comment.IComment;
4
+ type IModel = Model<IDocType>;
5
+ type ISchemaDefinition = SchemaDefinition<IDocType>;
6
+ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
2
7
  declare const modelName = "Comment";
3
- declare function createSchema(): Schema;
8
+ declare function createSchema(): ISchema;
4
9
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
5
- export { modelName, indexes, createSchema };
10
+ export { createSchema, IModel, indexes, modelName };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createSchema = exports.indexes = exports.modelName = void 0;
3
+ exports.modelName = exports.indexes = exports.createSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const writeConcern_1 = require("../writeConcern");
6
6
  const settings_1 = require("../../../settings");
@@ -1,5 +1,12 @@
1
- import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
1
+ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import * as factory from '../../../factory';
3
+ type IDocType = factory.creativeWork.movie.ICreativeWork & {
4
+ description?: string;
5
+ };
6
+ type IModel = Model<IDocType>;
7
+ type ISchemaDefinition = SchemaDefinition<IDocType>;
8
+ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
2
9
  declare const modelName = "CreativeWork";
3
- declare function createSchema(): Schema;
10
+ declare function createSchema(): ISchema;
4
11
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
5
- export { modelName, indexes, createSchema };
12
+ export { createSchema, IModel, indexes, modelName };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createSchema = exports.indexes = exports.modelName = void 0;
3
+ exports.modelName = exports.indexes = exports.createSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const writeConcern_1 = require("../writeConcern");
6
6
  const settings_1 = require("../../../settings");
@@ -18,7 +18,7 @@ const schemaDefinition = {
18
18
  alternativeHeadline: String,
19
19
  description: String,
20
20
  // copyrightHolder: SchemaTypes.Mixed,
21
- copyrightYear: Number,
21
+ // copyrightYear: Number,
22
22
  datePublished: Date,
23
23
  distributor: mongoose_1.SchemaTypes.Mixed,
24
24
  headline: String,
@@ -1,5 +1,10 @@
1
- import { IndexDefinition, IndexOptions, Schema } from 'mongoose';
1
+ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
2
+ import * as factory from '../../../factory';
3
+ type IDocType = factory.customer.ICustomer;
4
+ type IModel = Model<IDocType>;
5
+ type ISchemaDefinition = SchemaDefinition<IDocType>;
6
+ type ISchema = Schema<IDocType, IModel, {}, {}, {}, {}, ISchemaDefinition, IDocType>;
2
7
  declare const modelName = "Customer";
3
- declare function createSchema(): Schema;
8
+ declare function createSchema(): ISchema;
4
9
  declare const indexes: [d: IndexDefinition, o: IndexOptions][];
5
- export { modelName, indexes, createSchema };
10
+ export { createSchema, IModel, indexes, modelName };