@solana-mobile/dapp-store-publishing-tools 0.9.5 → 0.11.0

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.
package/lib/CoreUtils.js CHANGED
@@ -85,7 +85,7 @@ function _object_spread_props(target, source) {
85
85
  return target;
86
86
  }
87
87
  function _ts_generator(thisArg, body) {
88
- var f, y, t, g, _ = {
88
+ var f, y, t, _ = {
89
89
  label: 0,
90
90
  sent: function() {
91
91
  if (t[0] & 1) throw t[1];
@@ -93,14 +93,10 @@ function _ts_generator(thisArg, body) {
93
93
  },
94
94
  trys: [],
95
95
  ops: []
96
- };
97
- return(g = {
98
- next: verb(0),
99
- "throw": verb(1),
100
- "return": verb(2)
101
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
96
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
97
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
102
98
  return this;
103
- }), g);
99
+ }), g;
104
100
  function verb(n) {
105
101
  return function(v) {
106
102
  return step([
@@ -111,7 +107,7 @@ function _ts_generator(thisArg, body) {
111
107
  }
112
108
  function step(op) {
113
109
  if (f) throw new TypeError("Generator is already executing.");
114
- while(_)try {
110
+ while(g && (g = 0, op[0] && (_ = 0)), _)try {
115
111
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
116
112
  if (y = 0, t) op = [
117
113
  op[0] & 2,
@@ -184,12 +180,12 @@ export var Constants = function Constants() {
184
180
  "use strict";
185
181
  _class_call_check(this, Constants);
186
182
  };
187
- _define_property(Constants, "PUBLISHING_SCHEMA_VER", "0.2.6");
183
+ _define_property(Constants, "PUBLISHING_SCHEMA_VER", "0.3.0");
188
184
  export var truncateAddress = function(address) {
189
185
  return "".concat(address.slice(0, 4), "...").concat(address.slice(address.length - 4, address.length));
190
186
  };
191
- export var mintNft = function() {
192
- var _ref = _async_to_generator(function(metaplex, json, createNftInput, priorityFeeLamports) {
187
+ export var mintNft = function(metaplex, json, createNftInput, priorityFeeLamports) {
188
+ return _async_to_generator(function() {
193
189
  var uri, computeBudget, txBuilder, microLamportsPerCU;
194
190
  return _ts_generator(this, function(_state) {
195
191
  switch(_state.label){
@@ -234,8 +230,5 @@ export var mintNft = function() {
234
230
  ];
235
231
  }
236
232
  });
237
- });
238
- return function mintNft(metaplex, json, createNftInput, priorityFeeLamports) {
239
- return _ref.apply(this, arguments);
240
- };
241
- }();
233
+ })();
234
+ };
@@ -28,7 +28,7 @@ function _async_to_generator(fn) {
28
28
  };
29
29
  }
30
30
  function _ts_generator(thisArg, body) {
31
- var f, y, t, g, _ = {
31
+ var f, y, t, _ = {
32
32
  label: 0,
33
33
  sent: function() {
34
34
  if (t[0] & 1) throw t[1];
@@ -36,14 +36,10 @@ function _ts_generator(thisArg, body) {
36
36
  },
37
37
  trys: [],
38
38
  ops: []
39
- };
40
- return(g = {
41
- next: verb(0),
42
- "throw": verb(1),
43
- "return": verb(2)
44
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
39
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
40
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
45
41
  return this;
46
- }), g);
42
+ }), g;
47
43
  function verb(n) {
48
44
  return function(v) {
49
45
  return step([
@@ -54,7 +50,7 @@ function _ts_generator(thisArg, body) {
54
50
  }
55
51
  function step(op) {
56
52
  if (f) throw new TypeError("Generator is already executing.");
57
- while(_)try {
53
+ while(g && (g = 0, op[0] && (_ = 0)), _)try {
58
54
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
59
55
  if (y = 0, t) op = [
60
56
  op[0] & 2,
@@ -149,13 +145,13 @@ export var createAppJson = function(app, publisherAddress) {
149
145
  };
150
146
  return appMetadata;
151
147
  };
152
- export var createApp = function() {
153
- var _ref = _async_to_generator(function(param, param1) {
154
- var publisherMintAddress, mintAddress, appDetails, priorityFeeLamports, metaplex, publisher, appJson, txBuilder;
148
+ export var createApp = function(param, param1) {
149
+ var publisherMintAddress = param.publisherMintAddress, mintAddress = param.mintAddress, appDetails = param.appDetails, priorityFeeLamports = param.priorityFeeLamports, metaplex = param1.metaplex, publisher = param1.publisher;
150
+ return _async_to_generator(function() {
151
+ var appJson, txBuilder;
155
152
  return _ts_generator(this, function(_state) {
156
153
  switch(_state.label){
157
154
  case 0:
158
- publisherMintAddress = param.publisherMintAddress, mintAddress = param.mintAddress, appDetails = param.appDetails, priorityFeeLamports = param.priorityFeeLamports, metaplex = param1.metaplex, publisher = param1.publisher;
159
155
  appJson = createAppJson(appDetails, publisher.publicKey);
160
156
  validateApp(appJson);
161
157
  return [
@@ -189,8 +185,5 @@ export var createApp = function() {
189
185
  ];
190
186
  }
191
187
  });
192
- });
193
- return function createApp(_, _1) {
194
- return _ref.apply(this, arguments);
195
- };
196
- }();
188
+ })();
189
+ };
@@ -26,7 +26,7 @@ function AsyncFromSyncIterator(s) {
26
26
  };
27
27
  });
28
28
  }
29
- return(AsyncFromSyncIterator = function(s) {
29
+ return AsyncFromSyncIterator = function(s) {
30
30
  this.s = s, this.n = s.next;
31
31
  }, AsyncFromSyncIterator.prototype = {
32
32
  s: null,
@@ -45,7 +45,7 @@ function AsyncFromSyncIterator(s) {
45
45
  var thr = this.s.return;
46
46
  return void 0 === thr ? Promise.reject(value) : AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments));
47
47
  }
48
- }, new AsyncFromSyncIterator(s));
48
+ }, new AsyncFromSyncIterator(s);
49
49
  }
50
50
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
51
51
  try {
@@ -167,7 +167,7 @@ function _unsupported_iterable_to_array(o, minLen) {
167
167
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
168
168
  }
169
169
  function _ts_generator(thisArg, body) {
170
- var f, y, t, g, _ = {
170
+ var f, y, t, _ = {
171
171
  label: 0,
172
172
  sent: function() {
173
173
  if (t[0] & 1) throw t[1];
@@ -175,14 +175,10 @@ function _ts_generator(thisArg, body) {
175
175
  },
176
176
  trys: [],
177
177
  ops: []
178
- };
179
- return(g = {
180
- next: verb(0),
181
- "throw": verb(1),
182
- "return": verb(2)
183
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
178
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
179
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
184
180
  return this;
185
- }), g);
181
+ }), g;
186
182
  function verb(n) {
187
183
  return function(v) {
188
184
  return step([
@@ -193,7 +189,7 @@ function _ts_generator(thisArg, body) {
193
189
  }
194
190
  function step(op) {
195
191
  if (f) throw new TypeError("Generator is already executing.");
196
- while(_)try {
192
+ while(g && (g = 0, op[0] && (_ = 0)), _)try {
197
193
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
198
194
  if (y = 0, t) op = [
199
195
  op[0] & 2,
@@ -274,8 +270,8 @@ import { imageSize } from "image-size";
274
270
  import getVideoDimensions from "get-video-dimensions";
275
271
  var runImgSize = util.promisify(imageSize);
276
272
  var debug = debugModule("RELEASE");
277
- var getFileMetadata = function() {
278
- var _ref = _async_to_generator(function(item) {
273
+ var getFileMetadata = function(item) {
274
+ return _async_to_generator(function() {
279
275
  var _item_uri, file, mediaBuffer, size, hash, _item_uri1, _item_uri2, metadata;
280
276
  return _ts_generator(this, function(_state) {
281
277
  switch(_state.label){
@@ -310,13 +306,10 @@ var getFileMetadata = function() {
310
306
  ];
311
307
  }
312
308
  });
313
- });
314
- return function getFileMetadata(item) {
315
- return _ref.apply(this, arguments);
316
- };
317
- }();
318
- var getMediaMetadata = function() {
319
- var _ref = _async_to_generator(function(item) {
309
+ })();
310
+ };
311
+ var getMediaMetadata = function(item) {
312
+ return _async_to_generator(function() {
320
313
  var metadata, _item_uri, size, _size_width, _size_height, _item_uri1, size1, _size_width1, _size_height1;
321
314
  return _ts_generator(this, function(_state) {
322
315
  switch(_state.label){
@@ -327,7 +320,7 @@ var getMediaMetadata = function() {
327
320
  ];
328
321
  case 1:
329
322
  metadata = _state.sent();
330
- if (!(item.purpose == "screenshot" || item.purpose == "icon")) return [
323
+ if (!(item.purpose == "screenshot" || item.purpose == "icon" || item.purpose == "banner" || item.purpose == "featureGraphic")) return [
331
324
  3,
332
325
  3
333
326
  ];
@@ -364,18 +357,15 @@ var getMediaMetadata = function() {
364
357
  ];
365
358
  }
366
359
  });
367
- });
368
- return function getMediaMetadata(item) {
369
- return _ref.apply(this, arguments);
370
- };
371
- }();
372
- export var createReleaseJson = function() {
373
- var _ref = _async_to_generator(function(param, publisherAddress) {
374
- var releaseDetails, appDetails, publisherDetails, media, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, _value, item, _, err, files, _iteratorAbruptCompletion1, _didIteratorError1, _iteratorError1, _iterator1, _step1, _value1, item1, _1, err1, releaseIcon, imgUri, tmpMedia, _2, releaseMetadata, _iteratorNormalCompletion, _didIteratorError2, _iteratorError2, _iterator2, _step2, _step_value, locale, strings, _strings_saga_features;
360
+ })();
361
+ };
362
+ export var createReleaseJson = function(param, publisherAddress) {
363
+ var releaseDetails = param.releaseDetails, appDetails = param.appDetails, publisherDetails = param.publisherDetails;
364
+ return _async_to_generator(function() {
365
+ var media, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, _value, item, _, err, files, _iteratorAbruptCompletion1, _didIteratorError1, _iteratorError1, _iterator1, _step1, _value1, item1, _1, err1, releaseIcon, imgUri, tmpMedia, _2, releaseMetadata, _iteratorNormalCompletion, _didIteratorError2, _iteratorError2, _iterator2, _step2, _step_value, locale, strings, _strings_saga_features;
375
366
  return _ts_generator(this, function(_state) {
376
367
  switch(_state.label){
377
368
  case 0:
378
- releaseDetails = param.releaseDetails, appDetails = param.appDetails, publisherDetails = param.publisherDetails;
379
369
  media = [];
380
370
  debug({
381
371
  media: releaseDetails.media
@@ -641,11 +631,11 @@ export var createReleaseJson = function() {
641
631
  ;
642
632
  // @ts-expect-error
643
633
  releaseMetadata.extensions.i18n[locale] = {
644
- "1": strings.long_description.replace(/^\s+|\s+$/g, ""),
645
- "2": strings.new_in_version.replace(/^\s+|\s+$/g, ""),
646
- "3": (_strings_saga_features = strings.saga_features) === null || _strings_saga_features === void 0 ? void 0 : _strings_saga_features.replace(/^\s+|\s+$/g, ""),
647
- "4": strings.name.replace(/^\s+|\s+$/g, ""),
648
- "5": strings.short_description.replace(/^\s+|\s+$/g, "")
634
+ "1": strings.long_description.replace(/^\s+|\s+$/g, ''),
635
+ "2": strings.new_in_version.replace(/^\s+|\s+$/g, ''),
636
+ "3": (_strings_saga_features = strings.saga_features) === null || _strings_saga_features === void 0 ? void 0 : _strings_saga_features.replace(/^\s+|\s+$/g, ''),
637
+ "4": strings.name.replace(/^\s+|\s+$/g, ''),
638
+ "5": strings.short_description.replace(/^\s+|\s+$/g, '')
649
639
  };
650
640
  }
651
641
  } catch (err) {
@@ -668,18 +658,15 @@ export var createReleaseJson = function() {
668
658
  ];
669
659
  }
670
660
  });
671
- });
672
- return function createReleaseJson(_, publisherAddress) {
673
- return _ref.apply(this, arguments);
674
- };
675
- }();
676
- export var createRelease = function() {
677
- var _ref = _async_to_generator(function(param, param1) {
678
- var appMintAddress, releaseMintAddress, releaseDetails, appDetails, publisherDetails, priorityFeeLamports, publisher, metaplex, releaseJson, suppressedJson, txBuilder;
661
+ })();
662
+ };
663
+ export var createRelease = function(param, param1) {
664
+ var appMintAddress = param.appMintAddress, releaseMintAddress = param.releaseMintAddress, releaseDetails = param.releaseDetails, appDetails = param.appDetails, publisherDetails = param.publisherDetails, priorityFeeLamports = param.priorityFeeLamports, publisher = param1.publisher, metaplex = param1.metaplex;
665
+ return _async_to_generator(function() {
666
+ var releaseJson, suppressedJson, txBuilder;
679
667
  return _ts_generator(this, function(_state) {
680
668
  switch(_state.label){
681
669
  case 0:
682
- appMintAddress = param.appMintAddress, releaseMintAddress = param.releaseMintAddress, releaseDetails = param.releaseDetails, appDetails = param.appDetails, publisherDetails = param.publisherDetails, priorityFeeLamports = param.priorityFeeLamports, publisher = param1.publisher, metaplex = param1.metaplex;
683
670
  return [
684
671
  4,
685
672
  createReleaseJson({
@@ -724,8 +711,5 @@ export var createRelease = function() {
724
711
  ];
725
712
  }
726
713
  });
727
- });
728
- return function createRelease(_, _1) {
729
- return _ref.apply(this, arguments);
730
- };
731
- }();
714
+ })();
715
+ };
@@ -1,3 +1,2 @@
1
1
  export * from "./AppCore.js";
2
- export * from "./PublisherCore.js";
3
2
  export * from "./ReleaseCore.js";
@@ -1,4 +1,4 @@
1
- /* tslint:disable */ /**
1
+ /* eslint-disable */ /**
2
2
  * This file was automatically generated by json-schema-to-typescript.
3
3
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
4
  * and run json-schema-to-typescript to regenerate this file.
@@ -1,4 +1,4 @@
1
- /* tslint:disable */ /**
1
+ /* eslint-disable */ /**
2
2
  * This file was automatically generated by json-schema-to-typescript.
3
3
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
4
  * and run json-schema-to-typescript to regenerate this file.
@@ -1,4 +1,4 @@
1
- /* tslint:disable */ /**
1
+ /* eslint-disable */ /**
2
2
  * This file was automatically generated by json-schema-to-typescript.
3
3
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
4
  * and run json-schema-to-typescript to regenerate this file.
@@ -28,7 +28,7 @@ function _async_to_generator(fn) {
28
28
  };
29
29
  }
30
30
  function _ts_generator(thisArg, body) {
31
- var f, y, t, g, _ = {
31
+ var f, y, t, _ = {
32
32
  label: 0,
33
33
  sent: function() {
34
34
  if (t[0] & 1) throw t[1];
@@ -36,14 +36,10 @@ function _ts_generator(thisArg, body) {
36
36
  },
37
37
  trys: [],
38
38
  ops: []
39
- };
40
- return(g = {
41
- next: verb(0),
42
- "throw": verb(1),
43
- "return": verb(2)
44
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
39
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
40
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
45
41
  return this;
46
- }), g);
42
+ }), g;
47
43
  function verb(n) {
48
44
  return function(v) {
49
45
  return step([
@@ -54,7 +50,7 @@ function _ts_generator(thisArg, body) {
54
50
  }
55
51
  function step(op) {
56
52
  if (f) throw new TypeError("Generator is already executing.");
57
- while(_)try {
53
+ while(g && (g = 0, op[0] && (_ = 0)), _)try {
58
54
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
59
55
  if (y = 0, t) op = [
60
56
  op[0] & 2,
@@ -122,8 +118,8 @@ function _ts_generator(thisArg, body) {
122
118
  };
123
119
  }
124
120
  }
125
- export var createAttestationPayload = function() {
126
- var _ref = _async_to_generator(function(connection, sign) {
121
+ export var createAttestationPayload = function(connection, sign) {
122
+ return _async_to_generator(function() {
127
123
  var REQUEST_UNIQUE_ID_LEN, REQUEST_UNIQUE_ID_CHAR_SET, requestUniqueId, blockhash, attestation, signedAttestation;
128
124
  return _ts_generator(this, function(_state) {
129
125
  switch(_state.label){
@@ -154,8 +150,5 @@ export var createAttestationPayload = function() {
154
150
  ];
155
151
  }
156
152
  });
157
- });
158
- return function createAttestationPayload(connection, sign) {
159
- return _ref.apply(this, arguments);
160
- };
161
- }();
153
+ })();
154
+ };
@@ -28,7 +28,7 @@ function _async_to_generator(fn) {
28
28
  };
29
29
  }
30
30
  function _ts_generator(thisArg, body) {
31
- var f, y, t, g, _ = {
31
+ var f, y, t, _ = {
32
32
  label: 0,
33
33
  sent: function() {
34
34
  if (t[0] & 1) throw t[1];
@@ -36,14 +36,10 @@ function _ts_generator(thisArg, body) {
36
36
  },
37
37
  trys: [],
38
38
  ops: []
39
- };
40
- return(g = {
41
- next: verb(0),
42
- "throw": verb(1),
43
- "return": verb(2)
44
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
39
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
40
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
45
41
  return this;
46
- }), g);
42
+ }), g;
47
43
  function verb(n) {
48
44
  return function(v) {
49
45
  return step([
@@ -54,7 +50,7 @@ function _ts_generator(thisArg, body) {
54
50
  }
55
51
  function step(op) {
56
52
  if (f) throw new TypeError("Generator is already executing.");
57
- while(_)try {
53
+ while(g && (g = 0, op[0] && (_ = 0)), _)try {
58
54
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
59
55
  if (y = 0, t) op = [
60
56
  op[0] & 2,
@@ -124,8 +120,8 @@ function _ts_generator(thisArg, body) {
124
120
  }
125
121
  import { createAttestationPayload } from "./PublishCoreAttestation.js";
126
122
  import { CONTACT_OBJECT_ID, CONTACT_PROPERTY_COMPANY, CONTACT_PROPERTY_EMAIL, CONTACT_PROPERTY_WEBSITE, submitRequestToSolanaDappPublisherPortal, TICKET_OBJECT_ID, TICKET_PROPERTY_ATTESTATION_PAYLOAD, TICKET_PROPERTY_AUTHORIZED_REQUEST, TICKET_PROPERTY_CRITICAL_UPDATE, TICKET_PROPERTY_DAPP_COLLECTION_ACCOUNT_ADDRESS, TICKET_PROPERTY_DAPP_RELEASE_ACCOUNT_ADDRESS, TICKET_PROPERTY_REQUEST_UNIQUE_ID, URL_FORM_REMOVE } from "./dapp_publisher_portal.js";
127
- var createRemoveRequest = function() {
128
- var _ref = _async_to_generator(function(connection, sign, appMintAddress, releaseMintAddress, publisherDetails, requestorIsAuthorized, criticalUpdate) {
123
+ var createRemoveRequest = function(connection, sign, appMintAddress, releaseMintAddress, publisherDetails, requestorIsAuthorized, criticalUpdate) {
124
+ return _async_to_generator(function() {
129
125
  var _ref, attestationPayload, requestUniqueId, request;
130
126
  return _ts_generator(this, function(_state) {
131
127
  switch(_state.label){
@@ -193,18 +189,15 @@ var createRemoveRequest = function() {
193
189
  ];
194
190
  }
195
191
  });
196
- });
197
- return function createRemoveRequest(connection, sign, appMintAddress, releaseMintAddress, publisherDetails, requestorIsAuthorized, criticalUpdate) {
198
- return _ref.apply(this, arguments);
199
- };
200
- }();
201
- export var publishRemove = function() {
202
- var _ref = _async_to_generator(function(publishSolanaNetworkInput, param, dryRun) {
203
- var appMintAddress, releaseMintAddress, publisherDetails, requestorIsAuthorized, criticalUpdate, removeRequest;
192
+ })();
193
+ };
194
+ export var publishRemove = function(publishSolanaNetworkInput, param, dryRun) {
195
+ var appMintAddress = param.appMintAddress, releaseMintAddress = param.releaseMintAddress, publisherDetails = param.publisherDetails, requestorIsAuthorized = param.requestorIsAuthorized, criticalUpdate = param.criticalUpdate;
196
+ return _async_to_generator(function() {
197
+ var removeRequest;
204
198
  return _ts_generator(this, function(_state) {
205
199
  switch(_state.label){
206
200
  case 0:
207
- appMintAddress = param.appMintAddress, releaseMintAddress = param.releaseMintAddress, publisherDetails = param.publisherDetails, requestorIsAuthorized = param.requestorIsAuthorized, criticalUpdate = param.criticalUpdate;
208
201
  return [
209
202
  4,
210
203
  createRemoveRequest(publishSolanaNetworkInput.connection, publishSolanaNetworkInput.sign, appMintAddress, releaseMintAddress, publisherDetails, requestorIsAuthorized, criticalUpdate)
@@ -217,8 +210,5 @@ export var publishRemove = function() {
217
210
  ];
218
211
  }
219
212
  });
220
- });
221
- return function publishRemove(publishSolanaNetworkInput, _, dryRun) {
222
- return _ref.apply(this, arguments);
223
- };
224
- }();
213
+ })();
214
+ };
@@ -28,7 +28,7 @@ function _async_to_generator(fn) {
28
28
  };
29
29
  }
30
30
  function _ts_generator(thisArg, body) {
31
- var f, y, t, g, _ = {
31
+ var f, y, t, _ = {
32
32
  label: 0,
33
33
  sent: function() {
34
34
  if (t[0] & 1) throw t[1];
@@ -36,14 +36,10 @@ function _ts_generator(thisArg, body) {
36
36
  },
37
37
  trys: [],
38
38
  ops: []
39
- };
40
- return(g = {
41
- next: verb(0),
42
- "throw": verb(1),
43
- "return": verb(2)
44
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
39
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
40
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
45
41
  return this;
46
- }), g);
42
+ }), g;
47
43
  function verb(n) {
48
44
  return function(v) {
49
45
  return step([
@@ -54,7 +50,7 @@ function _ts_generator(thisArg, body) {
54
50
  }
55
51
  function step(op) {
56
52
  if (f) throw new TypeError("Generator is already executing.");
57
- while(_)try {
53
+ while(g && (g = 0, op[0] && (_ = 0)), _)try {
58
54
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
59
55
  if (y = 0, t) op = [
60
56
  op[0] & 2,
@@ -124,8 +120,8 @@ function _ts_generator(thisArg, body) {
124
120
  }
125
121
  import { createAttestationPayload } from "./PublishCoreAttestation.js";
126
122
  import { CONTACT_OBJECT_ID, CONTACT_PROPERTY_COMPANY, CONTACT_PROPERTY_EMAIL, CONTACT_PROPERTY_WEBSITE, submitRequestToSolanaDappPublisherPortal, TICKET_OBJECT_ID, TICKET_PROPERTY_ALPHA_TEST, TICKET_PROPERTY_ALPHA_TESTERS, TICKET_PROPERTY_ATTESTATION_PAYLOAD, TICKET_PROPERTY_AUTHORIZED_REQUEST, TICKET_PROPERTY_DAPP_COLLECTION_ACCOUNT_ADDRESS, TICKET_PROPERTY_DAPP_RELEASE_ACCOUNT_ADDRESS, TICKET_PROPERTY_GOOGLE_PLAY_STORE_PACKAGE_NAME, TICKET_PROPERTY_POLICY_COMPLIANT, TICKET_PROPERTY_REQUEST_UNIQUE_ID, TICKET_PROPERTY_TESTING_INSTRUCTIONS, URL_FORM_SUBMIT } from "./dapp_publisher_portal.js";
127
- var createSubmitRequest = function() {
128
- var _ref = _async_to_generator(function(connection, sign, appMintAddress, releaseMintAddress, publisherDetails, solanaMobileDappPublisherPortalDetails, compliesWithSolanaDappStorePolicies, requestorIsAuthorized, alphaTest) {
123
+ var createSubmitRequest = function(connection, sign, appMintAddress, releaseMintAddress, publisherDetails, solanaMobileDappPublisherPortalDetails, compliesWithSolanaDappStorePolicies, requestorIsAuthorized, alphaTest) {
124
+ return _async_to_generator(function() {
129
125
  var _ref, attestationPayload, requestUniqueId, request;
130
126
  return _ts_generator(this, function(_state) {
131
127
  switch(_state.label){
@@ -221,18 +217,15 @@ var createSubmitRequest = function() {
221
217
  ];
222
218
  }
223
219
  });
224
- });
225
- return function createSubmitRequest(connection, sign, appMintAddress, releaseMintAddress, publisherDetails, solanaMobileDappPublisherPortalDetails, compliesWithSolanaDappStorePolicies, requestorIsAuthorized, alphaTest) {
226
- return _ref.apply(this, arguments);
227
- };
228
- }();
229
- export var publishSubmit = function() {
230
- var _ref = _async_to_generator(function(publishSolanaNetworkInput, param, dryRun) {
231
- var appMintAddress, releaseMintAddress, publisherDetails, solanaMobileDappPublisherPortalDetails, compliesWithSolanaDappStorePolicies, requestorIsAuthorized, alphaTest, submitRequest;
220
+ })();
221
+ };
222
+ export var publishSubmit = function(publishSolanaNetworkInput, param, dryRun) {
223
+ var appMintAddress = param.appMintAddress, releaseMintAddress = param.releaseMintAddress, publisherDetails = param.publisherDetails, solanaMobileDappPublisherPortalDetails = param.solanaMobileDappPublisherPortalDetails, compliesWithSolanaDappStorePolicies = param.compliesWithSolanaDappStorePolicies, requestorIsAuthorized = param.requestorIsAuthorized, alphaTest = param.alphaTest;
224
+ return _async_to_generator(function() {
225
+ var submitRequest;
232
226
  return _ts_generator(this, function(_state) {
233
227
  switch(_state.label){
234
228
  case 0:
235
- appMintAddress = param.appMintAddress, releaseMintAddress = param.releaseMintAddress, publisherDetails = param.publisherDetails, solanaMobileDappPublisherPortalDetails = param.solanaMobileDappPublisherPortalDetails, compliesWithSolanaDappStorePolicies = param.compliesWithSolanaDappStorePolicies, requestorIsAuthorized = param.requestorIsAuthorized, alphaTest = param.alphaTest;
236
229
  return [
237
230
  4,
238
231
  createSubmitRequest(publishSolanaNetworkInput.connection, publishSolanaNetworkInput.sign, appMintAddress, releaseMintAddress, publisherDetails, solanaMobileDappPublisherPortalDetails, compliesWithSolanaDappStorePolicies, requestorIsAuthorized, alphaTest)
@@ -245,8 +238,5 @@ export var publishSubmit = function() {
245
238
  ];
246
239
  }
247
240
  });
248
- });
249
- return function publishSubmit(publishSolanaNetworkInput, _, dryRun) {
250
- return _ref.apply(this, arguments);
251
- };
252
- }();
241
+ })();
242
+ };
@@ -28,7 +28,7 @@ function _async_to_generator(fn) {
28
28
  };
29
29
  }
30
30
  function _ts_generator(thisArg, body) {
31
- var f, y, t, g, _ = {
31
+ var f, y, t, _ = {
32
32
  label: 0,
33
33
  sent: function() {
34
34
  if (t[0] & 1) throw t[1];
@@ -36,14 +36,10 @@ function _ts_generator(thisArg, body) {
36
36
  },
37
37
  trys: [],
38
38
  ops: []
39
- };
40
- return(g = {
41
- next: verb(0),
42
- "throw": verb(1),
43
- "return": verb(2)
44
- }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
39
+ }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
40
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
45
41
  return this;
46
- }), g);
42
+ }), g;
47
43
  function verb(n) {
48
44
  return function(v) {
49
45
  return step([
@@ -54,7 +50,7 @@ function _ts_generator(thisArg, body) {
54
50
  }
55
51
  function step(op) {
56
52
  if (f) throw new TypeError("Generator is already executing.");
57
- while(_)try {
53
+ while(g && (g = 0, op[0] && (_ = 0)), _)try {
58
54
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
59
55
  if (y = 0, t) op = [
60
56
  op[0] & 2,
@@ -124,8 +120,8 @@ function _ts_generator(thisArg, body) {
124
120
  }
125
121
  import { createAttestationPayload } from "./PublishCoreAttestation.js";
126
122
  import { CONTACT_OBJECT_ID, CONTACT_PROPERTY_COMPANY, CONTACT_PROPERTY_EMAIL, CONTACT_PROPERTY_WEBSITE, submitRequestToSolanaDappPublisherPortal, TICKET_OBJECT_ID, TICKET_PROPERTY_ATTESTATION_PAYLOAD, TICKET_PROPERTY_AUTHORIZED_REQUEST, TICKET_PROPERTY_CONTENT, TICKET_PROPERTY_DAPP_COLLECTION_ACCOUNT_ADDRESS, TICKET_PROPERTY_DAPP_RELEASE_ACCOUNT_ADDRESS, TICKET_PROPERTY_REQUEST_UNIQUE_ID, URL_FORM_SUPPORT } from "./dapp_publisher_portal.js";
127
- var createSupportRequest = function() {
128
- var _ref = _async_to_generator(function(connection, sign, appMintAddress, releaseMintAddress, publisherDetails, requestorIsAuthorized, requestDetails) {
123
+ var createSupportRequest = function(connection, sign, appMintAddress, releaseMintAddress, publisherDetails, requestorIsAuthorized, requestDetails) {
124
+ return _async_to_generator(function() {
129
125
  var _ref, attestationPayload, requestUniqueId;
130
126
  return _ts_generator(this, function(_state) {
131
127
  switch(_state.label){
@@ -190,18 +186,15 @@ var createSupportRequest = function() {
190
186
  ];
191
187
  }
192
188
  });
193
- });
194
- return function createSupportRequest(connection, sign, appMintAddress, releaseMintAddress, publisherDetails, requestorIsAuthorized, requestDetails) {
195
- return _ref.apply(this, arguments);
196
- };
197
- }();
198
- export var publishSupport = function() {
199
- var _ref = _async_to_generator(function(publishSolanaNetworkInput, param, dryRun) {
200
- var appMintAddress, releaseMintAddress, publisherDetails, requestorIsAuthorized, requestDetails, supportRequest;
189
+ })();
190
+ };
191
+ export var publishSupport = function(publishSolanaNetworkInput, param, dryRun) {
192
+ var appMintAddress = param.appMintAddress, releaseMintAddress = param.releaseMintAddress, publisherDetails = param.publisherDetails, requestorIsAuthorized = param.requestorIsAuthorized, requestDetails = param.requestDetails;
193
+ return _async_to_generator(function() {
194
+ var supportRequest;
201
195
  return _ts_generator(this, function(_state) {
202
196
  switch(_state.label){
203
197
  case 0:
204
- appMintAddress = param.appMintAddress, releaseMintAddress = param.releaseMintAddress, publisherDetails = param.publisherDetails, requestorIsAuthorized = param.requestorIsAuthorized, requestDetails = param.requestDetails;
205
198
  return [
206
199
  4,
207
200
  createSupportRequest(publishSolanaNetworkInput.connection, publishSolanaNetworkInput.sign, appMintAddress, releaseMintAddress, publisherDetails, requestorIsAuthorized, requestDetails)
@@ -214,8 +207,5 @@ export var publishSupport = function() {
214
207
  ];
215
208
  }
216
209
  });
217
- });
218
- return function publishSupport(publishSolanaNetworkInput, _, dryRun) {
219
- return _ref.apply(this, arguments);
220
- };
221
- }();
210
+ })();
211
+ };