@chevre/domain 23.0.0-alpha.5 → 23.0.0-alpha.6

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.
@@ -2,7 +2,7 @@ import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from '
2
2
  import * as factory from '../../../factory';
3
3
  export type IDocTypeAsProduct = Omit<factory.product.IProduct, 'id'>;
4
4
  export interface IDocTypeAsProductOffer {
5
- offers?: factory.product.IOffer[];
5
+ offers?: [];
6
6
  }
7
7
  type IDocType = IDocTypeAsProduct & IDocTypeAsProductOffer;
8
8
  type IModel = Model<IDocType>;
@@ -48,7 +48,7 @@ class ProductRepo {
48
48
  }
49
49
  // tslint:disable-next-line:max-func-body-length
50
50
  static CREATE_MONGO_CONDITIONS(params) {
51
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
51
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
52
52
  // MongoDB検索条件
53
53
  const andConditions = [];
54
54
  const projectIdEq = (_b = (_a = params.project) === null || _a === void 0 ? void 0 : _a.id) === null || _b === void 0 ? void 0 : _b.$eq;
@@ -111,15 +111,16 @@ class ProductRepo {
111
111
  productID: { $regex: new RegExp(productIDRegex) }
112
112
  });
113
113
  }
114
- const offersElemMatch = (_m = params.offers) === null || _m === void 0 ? void 0 : _m.$elemMatch;
115
- if (offersElemMatch !== undefined && offersElemMatch !== null) {
116
- andConditions.push({
117
- offers: {
118
- $elemMatch: offersElemMatch
119
- }
120
- });
121
- }
122
- const serviceOutputTypeOfEq = (_p = (_o = params.serviceOutput) === null || _o === void 0 ? void 0 : _o.typeOf) === null || _p === void 0 ? void 0 : _p.$eq;
114
+ // discontinue product.offers
115
+ // const offersElemMatch = params.offers?.$elemMatch;
116
+ // if (offersElemMatch !== undefined && offersElemMatch !== null) {
117
+ // andConditions.push({
118
+ // offers: {
119
+ // $elemMatch: offersElemMatch
120
+ // }
121
+ // });
122
+ // }
123
+ const serviceOutputTypeOfEq = (_o = (_m = params.serviceOutput) === null || _m === void 0 ? void 0 : _m.typeOf) === null || _o === void 0 ? void 0 : _o.$eq;
123
124
  if (typeof serviceOutputTypeOfEq === 'string') {
124
125
  andConditions.push({
125
126
  'serviceOutput.typeOf': {
@@ -128,7 +129,7 @@ class ProductRepo {
128
129
  }
129
130
  });
130
131
  }
131
- const serviceOutputAmountCurrencyEq = (_s = (_r = (_q = params.serviceOutput) === null || _q === void 0 ? void 0 : _q.amount) === null || _r === void 0 ? void 0 : _r.currency) === null || _s === void 0 ? void 0 : _s.$eq;
132
+ const serviceOutputAmountCurrencyEq = (_r = (_q = (_p = params.serviceOutput) === null || _p === void 0 ? void 0 : _p.amount) === null || _q === void 0 ? void 0 : _q.currency) === null || _r === void 0 ? void 0 : _r.$eq;
132
133
  if (typeof serviceOutputAmountCurrencyEq === 'string') {
133
134
  andConditions.push({
134
135
  'serviceOutput.amount.currency': {
@@ -137,7 +138,7 @@ class ProductRepo {
137
138
  }
138
139
  });
139
140
  }
140
- const serviceTypeCodeValueEq = (_u = (_t = params.serviceType) === null || _t === void 0 ? void 0 : _t.codeValue) === null || _u === void 0 ? void 0 : _u.$eq;
141
+ const serviceTypeCodeValueEq = (_t = (_s = params.serviceType) === null || _s === void 0 ? void 0 : _s.codeValue) === null || _t === void 0 ? void 0 : _t.$eq;
141
142
  if (typeof serviceTypeCodeValueEq === 'string') {
142
143
  andConditions.push({
143
144
  'serviceType.codeValue': {
@@ -146,7 +147,7 @@ class ProductRepo {
146
147
  }
147
148
  });
148
149
  }
149
- const nameRegex = (_v = params.name) === null || _v === void 0 ? void 0 : _v.$regex;
150
+ const nameRegex = (_u = params.name) === null || _u === void 0 ? void 0 : _u.$regex;
150
151
  if (typeof nameRegex === 'string' && nameRegex.length > 0) {
151
152
  const nameRegexExp = new RegExp(nameRegex);
152
153
  andConditions.push({
@@ -156,7 +157,7 @@ class ProductRepo {
156
157
  ]
157
158
  });
158
159
  }
159
- const additionalPropertyElemMatchNameEq = (_w = params.additionalPropertyMatch) === null || _w === void 0 ? void 0 : _w.nameEq;
160
+ const additionalPropertyElemMatchNameEq = (_v = params.additionalPropertyMatch) === null || _v === void 0 ? void 0 : _v.nameEq;
160
161
  if (typeof additionalPropertyElemMatchNameEq === 'string') {
161
162
  andConditions.push({
162
163
  additionalProperty: {
package/package.json CHANGED
@@ -11,8 +11,8 @@
11
11
  "dependencies": {
12
12
  "@aws-sdk/client-cognito-identity-provider": "3.600.0",
13
13
  "@aws-sdk/credential-providers": "3.600.0",
14
- "@chevre/factory": "5.1.0-alpha.0",
15
- "@cinerino/sdk": "12.5.0-alpha.6",
14
+ "@chevre/factory": "5.1.0-alpha.1",
15
+ "@cinerino/sdk": "12.5.0-alpha.7",
16
16
  "@motionpicture/coa-service": "9.6.0",
17
17
  "@motionpicture/gmo-service": "5.4.0-alpha.1",
18
18
  "@sendgrid/client": "8.1.4",
@@ -115,5 +115,5 @@
115
115
  "postversion": "git push origin --tags",
116
116
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
117
117
  },
118
- "version": "23.0.0-alpha.5"
118
+ "version": "23.0.0-alpha.6"
119
119
  }