@alicloud/websitebuild20250429 2.29.0 → 2.30.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.
- package/dist/client.d.ts +15 -0
- package/dist/client.js +60 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateInspirationRequest.d.ts +73 -0
- package/dist/models/CreateInspirationRequest.js +70 -0
- package/dist/models/CreateInspirationRequest.js.map +1 -0
- package/dist/models/CreateInspirationResponse.d.ts +19 -0
- package/dist/models/CreateInspirationResponse.js +69 -0
- package/dist/models/CreateInspirationResponse.js.map +1 -0
- package/dist/models/CreateInspirationResponseBody.d.ts +117 -0
- package/dist/models/CreateInspirationResponseBody.js +103 -0
- package/dist/models/CreateInspirationResponseBody.js.map +1 -0
- package/dist/models/GrantPromotionOfferForPartnerRequest.d.ts +1 -0
- package/dist/models/GrantPromotionOfferForPartnerRequest.js +2 -0
- package/dist/models/GrantPromotionOfferForPartnerRequest.js.map +1 -1
- package/dist/models/GrantPromotionOfferForPartnerResponseBody.d.ts +4 -4
- package/dist/models/ListPromotionOfferRecordsForPartnerRequest.d.ts +1 -1
- package/dist/models/ListPromotionOfferRecordsForPartnerResponseBody.d.ts +3 -3
- package/dist/models/model.d.ts +4 -0
- package/dist/models/model.js +21 -13
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +70 -0
- package/src/models/CreateInspirationRequest.ts +98 -0
- package/src/models/CreateInspirationResponse.ts +40 -0
- package/src/models/CreateInspirationResponseBody.ts +166 -0
- package/src/models/GrantPromotionOfferForPartnerRequest.ts +3 -0
- package/src/models/GrantPromotionOfferForPartnerResponseBody.ts +4 -4
- package/src/models/ListPromotionOfferRecordsForPartnerRequest.ts +1 -1
- package/src/models/ListPromotionOfferRecordsForPartnerResponseBody.ts +3 -3
- package/src/models/model.ts +4 -0
package/dist/client.d.ts
CHANGED
|
@@ -370,6 +370,21 @@ export default class Client extends OpenApi {
|
|
|
370
370
|
* @returns CreateAppTokenServiceResponse
|
|
371
371
|
*/
|
|
372
372
|
createAppTokenService(request: $_model.CreateAppTokenServiceRequest): Promise<$_model.CreateAppTokenServiceResponse>;
|
|
373
|
+
/**
|
|
374
|
+
* Creates a resource plan.
|
|
375
|
+
*
|
|
376
|
+
* @param request - CreateInspirationRequest
|
|
377
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
378
|
+
* @returns CreateInspirationResponse
|
|
379
|
+
*/
|
|
380
|
+
createInspirationWithOptions(request: $_model.CreateInspirationRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateInspirationResponse>;
|
|
381
|
+
/**
|
|
382
|
+
* Creates a resource plan.
|
|
383
|
+
*
|
|
384
|
+
* @param request - CreateInspirationRequest
|
|
385
|
+
* @returns CreateInspirationResponse
|
|
386
|
+
*/
|
|
387
|
+
createInspiration(request: $_model.CreateInspirationRequest): Promise<$_model.CreateInspirationResponse>;
|
|
373
388
|
/**
|
|
374
389
|
* Submits a task to create a logo.
|
|
375
390
|
*
|
package/dist/client.js
CHANGED
|
@@ -1197,6 +1197,63 @@ class Client extends openapi_core_1.default {
|
|
|
1197
1197
|
let runtime = new $dara.RuntimeOptions({});
|
|
1198
1198
|
return await this.createAppTokenServiceWithOptions(request, runtime);
|
|
1199
1199
|
}
|
|
1200
|
+
/**
|
|
1201
|
+
* Creates a resource plan.
|
|
1202
|
+
*
|
|
1203
|
+
* @param request - CreateInspirationRequest
|
|
1204
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1205
|
+
* @returns CreateInspirationResponse
|
|
1206
|
+
*/
|
|
1207
|
+
async createInspirationWithOptions(request, runtime) {
|
|
1208
|
+
request.validate();
|
|
1209
|
+
let query = {};
|
|
1210
|
+
if (!$dara.isNull(request.amountspec)) {
|
|
1211
|
+
query["Amountspec"] = request.amountspec;
|
|
1212
|
+
}
|
|
1213
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
1214
|
+
query["ClientToken"] = request.clientToken;
|
|
1215
|
+
}
|
|
1216
|
+
if (!$dara.isNull(request.duration)) {
|
|
1217
|
+
query["Duration"] = request.duration;
|
|
1218
|
+
}
|
|
1219
|
+
if (!$dara.isNull(request.extend)) {
|
|
1220
|
+
query["Extend"] = request.extend;
|
|
1221
|
+
}
|
|
1222
|
+
if (!$dara.isNull(request.paymentType)) {
|
|
1223
|
+
query["PaymentType"] = request.paymentType;
|
|
1224
|
+
}
|
|
1225
|
+
if (!$dara.isNull(request.pricingCycle)) {
|
|
1226
|
+
query["PricingCycle"] = request.pricingCycle;
|
|
1227
|
+
}
|
|
1228
|
+
if (!$dara.isNull(request.quantity)) {
|
|
1229
|
+
query["Quantity"] = request.quantity;
|
|
1230
|
+
}
|
|
1231
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1232
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1233
|
+
});
|
|
1234
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1235
|
+
action: "CreateInspiration",
|
|
1236
|
+
version: "2025-04-29",
|
|
1237
|
+
protocol: "HTTPS",
|
|
1238
|
+
pathname: "/",
|
|
1239
|
+
method: "POST",
|
|
1240
|
+
authType: "AK",
|
|
1241
|
+
style: "RPC",
|
|
1242
|
+
reqBodyType: "formData",
|
|
1243
|
+
bodyType: "json",
|
|
1244
|
+
});
|
|
1245
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateInspirationResponse({}));
|
|
1246
|
+
}
|
|
1247
|
+
/**
|
|
1248
|
+
* Creates a resource plan.
|
|
1249
|
+
*
|
|
1250
|
+
* @param request - CreateInspirationRequest
|
|
1251
|
+
* @returns CreateInspirationResponse
|
|
1252
|
+
*/
|
|
1253
|
+
async createInspiration(request) {
|
|
1254
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1255
|
+
return await this.createInspirationWithOptions(request, runtime);
|
|
1256
|
+
}
|
|
1200
1257
|
/**
|
|
1201
1258
|
* Submits a task to create a logo.
|
|
1202
1259
|
*
|
|
@@ -3537,6 +3594,9 @@ class Client extends openapi_core_1.default {
|
|
|
3537
3594
|
async grantPromotionOfferForPartnerWithOptions(request, runtime) {
|
|
3538
3595
|
request.validate();
|
|
3539
3596
|
let query = {};
|
|
3597
|
+
if (!$dara.isNull(request.activityCode)) {
|
|
3598
|
+
query["ActivityCode"] = request.activityCode;
|
|
3599
|
+
}
|
|
3540
3600
|
if (!$dara.isNull(request.activityId)) {
|
|
3541
3601
|
query["ActivityId"] = request.activityId;
|
|
3542
3602
|
}
|