@cinerino/sdk 12.8.0-alpha.0 → 12.8.0-alpha.1

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.
@@ -6,7 +6,7 @@ import * as auth from '../../auth/authAsAdmin';
6
6
  const PROJECT_ID = String(process.env.PROJECT_ID);
7
7
  const SELLER_ID = '59d20831e53ebc2b4e774466';
8
8
  const OFFER_IDENTIFIER = '20251115eventOffer01';
9
- const itemOfferedIdentifier = '20251113ABC12345102300';
9
+ const itemOfferedId = '69151228ad580da66c8b5068';
10
10
 
11
11
  // tslint:disable-next-line:max-func-body-length
12
12
  async function main() {
@@ -34,7 +34,7 @@ async function main() {
34
34
  }
35
35
  ],
36
36
  {
37
- itemOfferedIdentifier
37
+ itemOfferedId
38
38
  }
39
39
  );
40
40
  console.log('created.');
@@ -49,7 +49,7 @@ async function main() {
49
49
  }
50
50
  ],
51
51
  {
52
- itemOfferedIdentifier
52
+ itemOfferedId
53
53
  }
54
54
  );
55
55
  console.log('updated.');
@@ -58,7 +58,7 @@ async function main() {
58
58
  limit: 10,
59
59
  page: 1,
60
60
  // itemOfferedId: '691511df7d9f0e2df3d6dcf7'
61
- itemOfferedId: '69151228ad580da66c8b5068'
61
+ itemOfferedId: itemOfferedId
62
62
  });
63
63
  // tslint:disable-next-line:no-null-keyword
64
64
  console.dir(offers, { depth: null });
@@ -7,6 +7,10 @@ export interface IFindParams {
7
7
  */
8
8
  limit: number;
9
9
  page: number;
10
+ /**
11
+ * アプリケーションコード
12
+ */
13
+ availableAtOrFromIdentifier?: string;
10
14
  /**
11
15
  * イベントID
12
16
  */
@@ -33,9 +37,9 @@ export declare class EventOfferService extends Service {
33
37
  */
34
38
  params: ICreatingEventOffer[], options: {
35
39
  /**
36
- * イベント識別子
40
+ * イベントID
37
41
  */
38
- itemOfferedIdentifier: string;
42
+ itemOfferedId: string;
39
43
  }): Promise<void>;
40
44
  updateEventOfferByIdentifier(
41
45
  /**
@@ -43,9 +47,9 @@ export declare class EventOfferService extends Service {
43
47
  */
44
48
  params: ICreatingEventOffer[], options: {
45
49
  /**
46
- * イベント識別子
50
+ * イベントID
47
51
  */
48
- itemOfferedIdentifier: string;
52
+ itemOfferedId: string;
49
53
  }): Promise<void>;
50
54
  findEventOffers(params: IFindParams): Promise<(Omit<factory.eventOffer.IEventOffer, 'project'> & {
51
55
  id: string;
@@ -69,16 +69,16 @@ var EventOfferService = /** @class */ (function (_super) {
69
69
  */
70
70
  params, options) {
71
71
  return __awaiter(this, void 0, void 0, function () {
72
- var itemOfferedIdentifier;
72
+ var itemOfferedId;
73
73
  return __generator(this, function (_a) {
74
74
  switch (_a.label) {
75
75
  case 0:
76
- itemOfferedIdentifier = options.itemOfferedIdentifier;
76
+ itemOfferedId = options.itemOfferedId;
77
77
  return [4 /*yield*/, this.fetch({
78
78
  uri: BASE_URI,
79
79
  method: 'POST',
80
80
  body: params,
81
- qs: { itemOfferedIdentifier: itemOfferedIdentifier },
81
+ qs: { itemOfferedId: itemOfferedId },
82
82
  expectedStatusCodes: [http_status_1.NO_CONTENT]
83
83
  })];
84
84
  case 1:
@@ -94,16 +94,16 @@ var EventOfferService = /** @class */ (function (_super) {
94
94
  */
95
95
  params, options) {
96
96
  return __awaiter(this, void 0, void 0, function () {
97
- var itemOfferedIdentifier;
97
+ var itemOfferedId;
98
98
  return __generator(this, function (_a) {
99
99
  switch (_a.label) {
100
100
  case 0:
101
- itemOfferedIdentifier = options.itemOfferedIdentifier;
101
+ itemOfferedId = options.itemOfferedId;
102
102
  return [4 /*yield*/, this.fetch({
103
103
  uri: BASE_URI,
104
104
  method: 'PUT',
105
105
  body: params,
106
- qs: { itemOfferedIdentifier: itemOfferedIdentifier },
106
+ qs: { itemOfferedId: itemOfferedId },
107
107
  expectedStatusCodes: [http_status_1.NO_CONTENT]
108
108
  })];
109
109
  case 1:
package/lib/bundle.js CHANGED
@@ -3031,16 +3031,16 @@ var EventOfferService = /** @class */ (function (_super) {
3031
3031
  */
3032
3032
  params, options) {
3033
3033
  return __awaiter(this, void 0, void 0, function () {
3034
- var itemOfferedIdentifier;
3034
+ var itemOfferedId;
3035
3035
  return __generator(this, function (_a) {
3036
3036
  switch (_a.label) {
3037
3037
  case 0:
3038
- itemOfferedIdentifier = options.itemOfferedIdentifier;
3038
+ itemOfferedId = options.itemOfferedId;
3039
3039
  return [4 /*yield*/, this.fetch({
3040
3040
  uri: BASE_URI,
3041
3041
  method: 'POST',
3042
3042
  body: params,
3043
- qs: { itemOfferedIdentifier: itemOfferedIdentifier },
3043
+ qs: { itemOfferedId: itemOfferedId },
3044
3044
  expectedStatusCodes: [http_status_1.NO_CONTENT]
3045
3045
  })];
3046
3046
  case 1:
@@ -3056,16 +3056,16 @@ var EventOfferService = /** @class */ (function (_super) {
3056
3056
  */
3057
3057
  params, options) {
3058
3058
  return __awaiter(this, void 0, void 0, function () {
3059
- var itemOfferedIdentifier;
3059
+ var itemOfferedId;
3060
3060
  return __generator(this, function (_a) {
3061
3061
  switch (_a.label) {
3062
3062
  case 0:
3063
- itemOfferedIdentifier = options.itemOfferedIdentifier;
3063
+ itemOfferedId = options.itemOfferedId;
3064
3064
  return [4 /*yield*/, this.fetch({
3065
3065
  uri: BASE_URI,
3066
3066
  method: 'PUT',
3067
3067
  body: params,
3068
- qs: { itemOfferedIdentifier: itemOfferedIdentifier },
3068
+ qs: { itemOfferedId: itemOfferedId },
3069
3069
  expectedStatusCodes: [http_status_1.NO_CONTENT]
3070
3070
  })];
3071
3071
  case 1:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "12.8.0-alpha.0",
3
+ "version": "12.8.0-alpha.1",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {