@chevre/domain 21.2.0-alpha.15 → 21.2.0-alpha.16

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 (47) hide show
  1. package/example/src/chevre/createManyEventsIfNotExist.ts +4 -1
  2. package/example/src/chevre/migrateOrderAdditionalProperties.ts +85 -0
  3. package/example/src/chevre/transaction/findCreditCard.ts +1 -1
  4. package/example/src/chevre/transaction/orderMembershipService.ts +1 -1
  5. package/lib/chevre/index.d.ts +1 -1
  6. package/lib/chevre/index.js +2 -2
  7. package/lib/chevre/repo/creativeWork.d.ts +1 -3
  8. package/lib/chevre/repo/emailMessage.d.ts +1 -27
  9. package/lib/chevre/repo/event.d.ts +5 -1
  10. package/lib/chevre/repo/merchantReturnPolicy.d.ts +1 -3
  11. package/lib/chevre/repo/mongoose/schemas/account.d.ts +4 -2
  12. package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +29 -3
  13. package/lib/chevre/repo/mongoose/schemas/accountTransaction.d.ts +31 -3
  14. package/lib/chevre/repo/mongoose/schemas/accountingReport.d.ts +13 -3
  15. package/lib/chevre/repo/mongoose/schemas/action.d.ts +43 -3
  16. package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +17 -3
  17. package/lib/chevre/repo/mongoose/schemas/aggregation.d.ts +4 -2
  18. package/lib/chevre/repo/mongoose/schemas/assetTransaction.d.ts +41 -3
  19. package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +19 -3
  20. package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +25 -3
  21. package/lib/chevre/repo/mongoose/schemas/comments.d.ts +27 -3
  22. package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +43 -3
  23. package/lib/chevre/repo/mongoose/schemas/customer.d.ts +25 -3
  24. package/lib/chevre/repo/mongoose/schemas/emailMessages.d.ts +21 -3
  25. package/lib/chevre/repo/mongoose/schemas/event.d.ts +71 -3
  26. package/lib/chevre/repo/mongoose/schemas/member.d.ts +13 -3
  27. package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.d.ts +21 -3
  28. package/lib/chevre/repo/mongoose/schemas/offer.d.ts +65 -3
  29. package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +27 -3
  30. package/lib/chevre/repo/mongoose/schemas/order.d.ts +51 -3
  31. package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +25 -3
  32. package/lib/chevre/repo/mongoose/schemas/place.d.ts +49 -3
  33. package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +29 -3
  34. package/lib/chevre/repo/mongoose/schemas/product.d.ts +31 -3
  35. package/lib/chevre/repo/mongoose/schemas/project.d.ts +23 -3
  36. package/lib/chevre/repo/mongoose/schemas/reservation.d.ts +61 -3
  37. package/lib/chevre/repo/mongoose/schemas/role.d.ts +11 -3
  38. package/lib/chevre/repo/mongoose/schemas/seller.d.ts +31 -3
  39. package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +11 -3
  40. package/lib/chevre/repo/mongoose/schemas/task.d.ts +27 -3
  41. package/lib/chevre/repo/mongoose/schemas/telemetry.d.ts +21 -3
  42. package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +37 -3
  43. package/lib/chevre/repo/mongoose/schemas/trip.d.ts +11 -3
  44. package/lib/chevre/repo/order.d.ts +25 -0
  45. package/lib/chevre/repo/order.js +5 -0
  46. package/package.json +3 -3
  47. package/example/src/chevre/migrateMovieAdditionalProperties.ts +0 -98
@@ -197,7 +197,10 @@ async function main() {
197
197
  }
198
198
  ]);
199
199
  console.log(result);
200
- console.log('upsertedIds:', (Array.isArray(result?.result.upserted)) ? result?.result.upserted.map((u: any) => u._id) : []);
200
+ console.log('upsertedIds:', (Array.isArray(result?.getUpsertedIds()))
201
+ ? result?.getUpsertedIds()
202
+ .map((u: any) => u._id)
203
+ : []);
201
204
  }
202
205
 
203
206
  main()
@@ -0,0 +1,85 @@
1
+ // tslint:disable:no-console
2
+ import * as moment from 'moment';
3
+ import * as mongoose from 'mongoose';
4
+
5
+ import { chevre } from '../../../lib/index';
6
+
7
+ // const project = { id: String(process.env.PROJECT_ID) };
8
+ // const EXCLUDED_PROJECT_ID = process.env.EXCLUDED_PROJECT_ID;
9
+
10
+ // tslint:disable-next-line:max-func-body-length
11
+ async function main() {
12
+ await mongoose.connect(<string>process.env.MONGOLAB_URI, { autoIndex: false });
13
+
14
+ const orderRepo = new chevre.repository.Order(mongoose.connection);
15
+
16
+ const cursor = orderRepo.getCursor(
17
+ {
18
+ // 'project.id': { $eq: project.id },
19
+ // 'project.id': { $ne: EXCLUDED_PROJECT_ID },
20
+ orderDate: {
21
+ $gte: moment()
22
+ .add(-1, 'months')
23
+ .toDate()
24
+ }
25
+ },
26
+ {
27
+ paymentMethods: 1,
28
+ project: 1,
29
+ orderDate: 1
30
+ }
31
+ );
32
+ console.log('movies found');
33
+
34
+ const additionalPropertyNames: string[] = [];
35
+ const projectIds: string[] = [];
36
+ const unexpextedprojectIds: string[] = [];
37
+
38
+ let i = 0;
39
+ await cursor.eachAsync(async (doc) => {
40
+ i += 1;
41
+ const order: chevre.factory.order.IOrder = doc.toObject();
42
+
43
+ const additionalPropertyNamesOnOrder = order.paymentMethods.reduce<string[]>(
44
+ (a, b) => {
45
+ if (Array.isArray(b.additionalProperty)) {
46
+ return [...a, ...b.additionalProperty.map((p) => p.name)];
47
+ } else {
48
+ return a;
49
+ }
50
+ },
51
+ []
52
+ );
53
+ if (Array.isArray(additionalPropertyNamesOnOrder) && additionalPropertyNamesOnOrder.length > 0) {
54
+ console.log(
55
+ additionalPropertyNamesOnOrder.join(','),
56
+ additionalPropertyNamesOnOrder.length,
57
+ 'additionalPropertyNamesOnOrder found',
58
+ order.project.id,
59
+ order.id,
60
+ order.orderDate
61
+ );
62
+ additionalPropertyNames.push(...additionalPropertyNamesOnOrder);
63
+ projectIds.push(order.project.id);
64
+ additionalPropertyNamesOnOrder.forEach((name) => {
65
+ if (!name.match(/^[a-zA-Z]*$/)) {
66
+ // throw new Error(`not matched ${creativeWork.project.id} ${creativeWork.id}`);
67
+ unexpextedprojectIds.push(order.project.id);
68
+ }
69
+ // tslint:disable-next-line:no-magic-numbers
70
+ if (name.length < 5) {
71
+ // throw new Error(`length matched ${creativeWork.project.id} ${creativeWork.id} ${name}`);
72
+ unexpextedprojectIds.push(order.project.id);
73
+ }
74
+ });
75
+ }
76
+ });
77
+ console.log(i, 'orders checked');
78
+ console.log('additionalPropertyNames:', [...new Set(additionalPropertyNames)]);
79
+ console.log('projectIds:', [...new Set(projectIds)]);
80
+ console.log('unexpextedprojectIds:', [...new Set(unexpextedprojectIds)]);
81
+ }
82
+
83
+ main()
84
+ .then()
85
+ .catch(console.error);
@@ -11,7 +11,7 @@ async function main() {
11
11
 
12
12
  const projectRepo = new chevre.repository.Project(mongoose.connection);
13
13
  const productRepo = new chevre.repository.Product(mongoose.connection);
14
- const personRepo = new chevre.repository.Person({ userPoolId: chevre.settings.userPoolIdNew });
14
+ const personRepo = new chevre.repository.Person({ userPoolId: chevre.settings.settings.userPoolIdNew });
15
15
 
16
16
  const result = await findCreditCard({
17
17
  project: { id: project.id },
@@ -19,7 +19,7 @@ async function main() {
19
19
  });
20
20
  await redisClient.connect();
21
21
 
22
- const personRepo = new chevre.repository.Person({ userPoolId: chevre.settings.userPoolIdNew });
22
+ const personRepo = new chevre.repository.Person({ userPoolId: chevre.settings.settings.userPoolIdNew });
23
23
  const actionRepo = new chevre.repository.Action(mongoose.connection);
24
24
  const accountRepo = new chevre.repository.Account(mongoose.connection);
25
25
  const accountingReportRepo = new chevre.repository.AccountingReport(mongoose.connection);
@@ -11,5 +11,5 @@ import * as factory from './factory';
11
11
  import * as pecorinoapi from './pecorinoapi';
12
12
  import * as repository from './repository';
13
13
  import * as service from './service';
14
- import { settings } from './settings';
14
+ import * as settings from './settings';
15
15
  export { credentials, errorHandler, eventEmitter, factory, repository, service, settings, surfrock, pecorinoapi, COA, GMO };
@@ -24,5 +24,5 @@ const repository = require("./repository");
24
24
  exports.repository = repository;
25
25
  const service = require("./service");
26
26
  exports.service = service;
27
- const settings_1 = require("./settings");
28
- Object.defineProperty(exports, "settings", { enumerable: true, get: function () { return settings_1.settings; } });
27
+ const settings = require("./settings");
28
+ exports.settings = settings;
@@ -34,9 +34,7 @@ export declare class MongoRepository {
34
34
  /**
35
35
  * コンテンツを保管する
36
36
  */
37
- saveMovie(params: factory.creativeWork.movie.ICreativeWork): Promise<import("mongoose").LeanDocument<any> & Required<{
38
- _id: unknown;
39
- }>>;
37
+ saveMovie(params: factory.creativeWork.movie.ICreativeWork): Promise<any>;
40
38
  findMovieById(params: {
41
39
  id: string;
42
40
  }): Promise<factory.creativeWork.movie.ICreativeWork>;
@@ -1,27 +1,3 @@
1
- /// <reference types="mongoose/types/aggregate" />
2
- /// <reference types="mongoose/types/callback" />
3
- /// <reference types="mongoose/types/collection" />
4
- /// <reference types="mongoose/types/connection" />
5
- /// <reference types="mongoose/types/cursor" />
6
- /// <reference types="mongoose/types/document" />
7
- /// <reference types="mongoose/types/error" />
8
- /// <reference types="mongoose/types/expressions" />
9
- /// <reference types="mongoose/types/helpers" />
10
- /// <reference types="mongoose/types/middlewares" />
11
- /// <reference types="mongoose/types/indexes" />
12
- /// <reference types="mongoose/types/models" />
13
- /// <reference types="mongoose/types/mongooseoptions" />
14
- /// <reference types="mongoose/types/pipelinestage" />
15
- /// <reference types="mongoose/types/populate" />
16
- /// <reference types="mongoose/types/query" />
17
- /// <reference types="mongoose/types/schemaoptions" />
18
- /// <reference types="mongoose/types/schematypes" />
19
- /// <reference types="mongoose/types/session" />
20
- /// <reference types="mongoose/types/types" />
21
- /// <reference types="mongoose/types/utility" />
22
- /// <reference types="mongoose/types/validation" />
23
- /// <reference types="mongoose/types/virtuals" />
24
- /// <reference types="mongoose/types/inferschematype" />
25
1
  import { Connection } from 'mongoose';
26
2
  import * as factory from '../factory';
27
3
  export type IEmailMessage = factory.creativeWork.message.email.ICreativeWork;
@@ -50,9 +26,7 @@ export declare class MongoRepository {
50
26
  private readonly emailMessageModel;
51
27
  constructor(connection: Connection);
52
28
  static CREATE_MONGO_CONDITIONS(params: ISearchConditions): any[];
53
- save(params: IEmailMessage): Promise<import("mongoose").LeanDocument<any> & Required<{
54
- _id: unknown;
55
- }>>;
29
+ save(params: IEmailMessage): Promise<any>;
56
30
  findById(params: {
57
31
  id: string;
58
32
  }): Promise<IEmailMessage>;
@@ -169,7 +169,11 @@ export declare class MongoRepository {
169
169
  updateAggregationById<T extends factory.eventType>(params: {
170
170
  id: string;
171
171
  }, update: IUpdateAggregateReservationParams | IUpdateAggregateUseActionsParams): Promise<factory.event.IEvent<T>>;
172
- bulkWrite(bulkWriteOps: any[]): Promise<BulkWriteOpResultObject>;
172
+ bulkWrite(bulkWriteOps: any[]): Promise<BulkWriteOpResultObject & {
173
+ mongoose?: {
174
+ validationErrors: import("mongoose").Error[];
175
+ } | undefined;
176
+ }>;
173
177
  getCursor(conditions: any, projection: any): import("mongoose").Cursor<any, import("mongoose").QueryOptions<any>>;
174
178
  unsetUnnecessaryFields(params: {
175
179
  filter: any;
@@ -31,9 +31,7 @@ export declare class MongoRepository {
31
31
  private readonly merchantReturnPolicyModel;
32
32
  constructor(connection: Connection);
33
33
  static CREATE_MONGO_CONDITIONS(params: factory.unitPriceOffer.IOfferMerchantReturnPolicySearchConditions): any[];
34
- save(params: factory.unitPriceOffer.IOfferMerchantReturnPolicy): Promise<import("mongoose").LeanDocument<any> & Required<{
35
- _id: unknown;
36
- }>>;
34
+ save(params: factory.unitPriceOffer.IOfferMerchantReturnPolicy): Promise<any>;
37
35
  findById(params: {
38
36
  id: string;
39
37
  }): Promise<factory.unitPriceOffer.IOfferMerchantReturnPolicy>;
@@ -27,7 +27,7 @@ declare const modelName = "Account";
27
27
  /**
28
28
  * 口座スキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
@@ -51,5 +51,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
51
51
  minimize: false;
52
52
  versionKey: false;
53
53
  };
54
- }>, {}>;
54
+ }, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{}>> & Omit<import("mongoose").FlatRecord<{}> & Required<{
55
+ _id: unknown;
56
+ }>, never>>;
55
57
  export { modelName, schema };
@@ -27,7 +27,7 @@ declare const modelName = "AccountTitle";
27
27
  /**
28
28
  * 勘定科目スキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
@@ -49,7 +49,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
49
49
  minimize: false;
50
50
  versionKey: false;
51
51
  };
52
- }>, {
52
+ }, {
53
53
  typeOf: string;
54
54
  name?: string | undefined;
55
55
  project?: any;
@@ -61,5 +61,31 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
61
61
  inDefinedTermSet?: any;
62
62
  hasDefinedTerm?: any;
63
63
  additionalProperty?: any;
64
- }>;
64
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
65
+ typeOf: string;
66
+ name?: string | undefined;
67
+ project?: any;
68
+ codeValue?: string | undefined;
69
+ alternateName?: string | undefined;
70
+ description?: string | undefined;
71
+ inCodeSet?: any;
72
+ hasCategoryCode?: any;
73
+ inDefinedTermSet?: any;
74
+ hasDefinedTerm?: any;
75
+ additionalProperty?: any;
76
+ }>> & Omit<import("mongoose").FlatRecord<{
77
+ typeOf: string;
78
+ name?: string | undefined;
79
+ project?: any;
80
+ codeValue?: string | undefined;
81
+ alternateName?: string | undefined;
82
+ description?: string | undefined;
83
+ inCodeSet?: any;
84
+ hasCategoryCode?: any;
85
+ inDefinedTermSet?: any;
86
+ hasDefinedTerm?: any;
87
+ additionalProperty?: any;
88
+ }> & {
89
+ _id: import("mongoose").Types.ObjectId;
90
+ }, never>>;
65
91
  export { modelName, schema };
@@ -27,7 +27,7 @@ declare const modelName = "AccountTransaction";
27
27
  /**
28
28
  * 口座取引スキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
@@ -51,7 +51,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
51
51
  minimize: false;
52
52
  versionKey: false;
53
53
  };
54
- }>, {
54
+ }, {
55
55
  typeOf: string;
56
56
  status: string;
57
57
  transactionNumber: string;
@@ -64,5 +64,33 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
64
64
  startDate?: Date | undefined;
65
65
  endDate?: Date | undefined;
66
66
  potentialActions?: any;
67
- }>;
67
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
68
+ typeOf: string;
69
+ status: string;
70
+ transactionNumber: string;
71
+ object?: any;
72
+ expires?: Date | undefined;
73
+ project?: any;
74
+ identifier?: string | undefined;
75
+ agent?: any;
76
+ recipient?: any;
77
+ startDate?: Date | undefined;
78
+ endDate?: Date | undefined;
79
+ potentialActions?: any;
80
+ }>> & Omit<import("mongoose").FlatRecord<{
81
+ typeOf: string;
82
+ status: string;
83
+ transactionNumber: string;
84
+ object?: any;
85
+ expires?: Date | undefined;
86
+ project?: any;
87
+ identifier?: string | undefined;
88
+ agent?: any;
89
+ recipient?: any;
90
+ startDate?: Date | undefined;
91
+ endDate?: Date | undefined;
92
+ potentialActions?: any;
93
+ }> & {
94
+ _id: import("mongoose").Types.ObjectId;
95
+ }, never>>;
68
96
  export { modelName, schema };
@@ -27,7 +27,7 @@ declare const modelName = "AccountingReport";
27
27
  /**
28
28
  * 経理レポートスキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
@@ -51,9 +51,19 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
51
51
  minimize: false;
52
52
  versionKey: false;
53
53
  };
54
- }>, {
54
+ }, {
55
55
  hasPart: (typeof Schema.Types.Mixed)[];
56
56
  mainEntity: typeof Schema.Types.Mixed;
57
57
  project: typeof Schema.Types.Mixed;
58
- }>;
58
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
59
+ hasPart: (typeof Schema.Types.Mixed)[];
60
+ mainEntity: typeof Schema.Types.Mixed;
61
+ project: typeof Schema.Types.Mixed;
62
+ }>> & Omit<import("mongoose").FlatRecord<{
63
+ hasPart: (typeof Schema.Types.Mixed)[];
64
+ mainEntity: typeof Schema.Types.Mixed;
65
+ project: typeof Schema.Types.Mixed;
66
+ }> & {
67
+ _id: import("mongoose").Types.ObjectId;
68
+ }, never>>;
59
69
  export { modelName, schema };
@@ -27,7 +27,7 @@ declare const modelName = "Action";
27
27
  /**
28
28
  * アクションスキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
@@ -51,10 +51,30 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
51
51
  minimize: false;
52
52
  versionKey: false;
53
53
  };
54
- }>, {
54
+ }, {
55
55
  object?: any;
56
56
  typeOf?: string | undefined;
57
57
  error?: any;
58
+ result?: any;
59
+ project?: any;
60
+ description?: string | undefined;
61
+ agent?: any;
62
+ recipient?: any;
63
+ startDate?: Date | undefined;
64
+ endDate?: Date | undefined;
65
+ potentialActions?: any;
66
+ fromLocation?: any;
67
+ toLocation?: any;
68
+ actionStatus?: string | undefined;
69
+ purpose?: any;
70
+ amount?: any;
71
+ instrument?: any;
72
+ location?: any;
73
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
74
+ object?: any;
75
+ typeOf?: string | undefined;
76
+ error?: any;
77
+ result?: any;
58
78
  project?: any;
59
79
  description?: string | undefined;
60
80
  agent?: any;
@@ -65,10 +85,30 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
65
85
  fromLocation?: any;
66
86
  toLocation?: any;
67
87
  actionStatus?: string | undefined;
88
+ purpose?: any;
89
+ amount?: any;
90
+ instrument?: any;
91
+ location?: any;
92
+ }>> & Omit<import("mongoose").FlatRecord<{
93
+ object?: any;
94
+ typeOf?: string | undefined;
95
+ error?: any;
68
96
  result?: any;
97
+ project?: any;
98
+ description?: string | undefined;
99
+ agent?: any;
100
+ recipient?: any;
101
+ startDate?: Date | undefined;
102
+ endDate?: Date | undefined;
103
+ potentialActions?: any;
104
+ fromLocation?: any;
105
+ toLocation?: any;
106
+ actionStatus?: string | undefined;
69
107
  purpose?: any;
70
108
  amount?: any;
71
109
  instrument?: any;
72
110
  location?: any;
73
- }>;
111
+ }> & {
112
+ _id: import("mongoose").Types.ObjectId;
113
+ }, never>>;
74
114
  export { modelName, schema };
@@ -27,7 +27,7 @@ declare const modelName = "AdditionalProperty";
27
27
  /**
28
28
  * 追加特性スキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
@@ -51,11 +51,25 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
51
51
  minimize: false;
52
52
  versionKey: false;
53
53
  };
54
- }>, {
54
+ }, {
55
55
  typeOf: string;
56
56
  codeValue: string;
57
57
  name?: any;
58
58
  project?: any;
59
59
  inCodeSet?: any;
60
- }>;
60
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
61
+ typeOf: string;
62
+ codeValue: string;
63
+ name?: any;
64
+ project?: any;
65
+ inCodeSet?: any;
66
+ }>> & Omit<import("mongoose").FlatRecord<{
67
+ typeOf: string;
68
+ codeValue: string;
69
+ name?: any;
70
+ project?: any;
71
+ inCodeSet?: any;
72
+ }> & {
73
+ _id: import("mongoose").Types.ObjectId;
74
+ }, never>>;
61
75
  export { modelName, schema };
@@ -27,7 +27,7 @@ declare const modelName = "Aggregation";
27
27
  /**
28
28
  * 集計スキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
@@ -51,5 +51,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
51
51
  minimize: false;
52
52
  versionKey: false;
53
53
  };
54
- }>, {}>;
54
+ }, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{}>> & Omit<import("mongoose").FlatRecord<{}> & Required<{
55
+ _id: unknown;
56
+ }>, never>>;
55
57
  export { modelName, schema };
@@ -27,7 +27,7 @@ declare const modelName = "AssetTransaction";
27
27
  /**
28
28
  * 資産取引スキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
@@ -51,11 +51,30 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
51
51
  minimize: false;
52
52
  versionKey: false;
53
53
  };
54
- }>, {
54
+ }, {
55
55
  object?: any;
56
56
  typeOf?: string | undefined;
57
57
  error?: any;
58
58
  status?: string | undefined;
59
+ result?: any;
60
+ expires?: Date | undefined;
61
+ project?: any;
62
+ agent?: any;
63
+ recipient?: any;
64
+ startDate?: Date | undefined;
65
+ endDate?: Date | undefined;
66
+ potentialActions?: any;
67
+ transactionNumber?: string | undefined;
68
+ tasksExportationStatus?: string | undefined;
69
+ tasksExportedAt?: Date | undefined;
70
+ location?: any;
71
+ seller?: any;
72
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
73
+ object?: any;
74
+ typeOf?: string | undefined;
75
+ error?: any;
76
+ status?: string | undefined;
77
+ result?: any;
59
78
  expires?: Date | undefined;
60
79
  project?: any;
61
80
  agent?: any;
@@ -66,8 +85,27 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
66
85
  transactionNumber?: string | undefined;
67
86
  tasksExportationStatus?: string | undefined;
68
87
  tasksExportedAt?: Date | undefined;
88
+ location?: any;
89
+ seller?: any;
90
+ }>> & Omit<import("mongoose").FlatRecord<{
91
+ object?: any;
92
+ typeOf?: string | undefined;
93
+ error?: any;
94
+ status?: string | undefined;
69
95
  result?: any;
96
+ expires?: Date | undefined;
97
+ project?: any;
98
+ agent?: any;
99
+ recipient?: any;
100
+ startDate?: Date | undefined;
101
+ endDate?: Date | undefined;
102
+ potentialActions?: any;
103
+ transactionNumber?: string | undefined;
104
+ tasksExportationStatus?: string | undefined;
105
+ tasksExportedAt?: Date | undefined;
70
106
  location?: any;
71
107
  seller?: any;
72
- }>;
108
+ }> & {
109
+ _id: import("mongoose").Types.ObjectId;
110
+ }, never>>;
73
111
  export { modelName, schema };
@@ -27,7 +27,7 @@ declare const modelName = "Authorization";
27
27
  /**
28
28
  * 認可スキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
@@ -51,12 +51,28 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
51
51
  minimize: false;
52
52
  versionKey: false;
53
53
  };
54
- }>, {
54
+ }, {
55
55
  object?: any;
56
56
  typeOf?: string | undefined;
57
57
  project?: any;
58
58
  code?: string | undefined;
59
59
  validFrom?: Date | undefined;
60
60
  validUntil?: Date | undefined;
61
- }>;
61
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
62
+ object?: any;
63
+ typeOf?: string | undefined;
64
+ project?: any;
65
+ code?: string | undefined;
66
+ validFrom?: Date | undefined;
67
+ validUntil?: Date | undefined;
68
+ }>> & Omit<import("mongoose").FlatRecord<{
69
+ object?: any;
70
+ typeOf?: string | undefined;
71
+ project?: any;
72
+ code?: string | undefined;
73
+ validFrom?: Date | undefined;
74
+ validUntil?: Date | undefined;
75
+ }> & {
76
+ _id: import("mongoose").Types.ObjectId;
77
+ }, never>>;
62
78
  export { modelName, schema };
@@ -27,7 +27,7 @@ declare const modelName = "CategoryCode";
27
27
  /**
28
28
  * カテゴリーコードスキーマ
29
29
  */
30
- declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").ResolveSchemaOptions<{
30
+ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
31
31
  collection: string;
32
32
  id: true;
33
33
  read: string;
@@ -51,7 +51,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
51
51
  minimize: false;
52
52
  versionKey: false;
53
53
  };
54
- }>, {
54
+ }, {
55
55
  typeOf: string;
56
56
  codeValue: string;
57
57
  additionalProperty: any[];
@@ -61,5 +61,27 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
61
61
  paymentMethod?: any;
62
62
  color?: string | undefined;
63
63
  image?: string | undefined;
64
- }>;
64
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
65
+ typeOf: string;
66
+ codeValue: string;
67
+ additionalProperty: any[];
68
+ name?: any;
69
+ project?: any;
70
+ inCodeSet?: any;
71
+ paymentMethod?: any;
72
+ color?: string | undefined;
73
+ image?: string | undefined;
74
+ }>> & Omit<import("mongoose").FlatRecord<{
75
+ typeOf: string;
76
+ codeValue: string;
77
+ additionalProperty: any[];
78
+ name?: any;
79
+ project?: any;
80
+ inCodeSet?: any;
81
+ paymentMethod?: any;
82
+ color?: string | undefined;
83
+ image?: string | undefined;
84
+ }> & {
85
+ _id: import("mongoose").Types.ObjectId;
86
+ }, never>>;
65
87
  export { modelName, schema };