freestyle-sandboxes 0.0.89 → 0.0.91
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/inde.d.cts +1 -2
- package/dist/inde.d.mts +1 -2
- package/dist/index.cjs +5 -7
- package/dist/index.d.cts +1 -2
- package/dist/index.d.mts +1 -2
- package/dist/index.mjs +5 -7
- package/package.json +1 -1
- package/src/index.ts +4 -7
package/dist/inde.d.cts
CHANGED
|
@@ -180,9 +180,8 @@ declare class FreestyleSandboxes {
|
|
|
180
180
|
/**
|
|
181
181
|
* Remove a domain mapping for a deployment.
|
|
182
182
|
*/
|
|
183
|
-
removeDomainMapping({ domain,
|
|
183
|
+
removeDomainMapping({ domain, }: {
|
|
184
184
|
domain: string;
|
|
185
|
-
deploymentId: string;
|
|
186
185
|
}): Promise<HandleDeleteDomainMappingResponse>;
|
|
187
186
|
listDomainMappings({ domain, domainOwnership, limit, offset, }: {
|
|
188
187
|
domain?: string;
|
package/dist/inde.d.mts
CHANGED
|
@@ -180,9 +180,8 @@ declare class FreestyleSandboxes {
|
|
|
180
180
|
/**
|
|
181
181
|
* Remove a domain mapping for a deployment.
|
|
182
182
|
*/
|
|
183
|
-
removeDomainMapping({ domain,
|
|
183
|
+
removeDomainMapping({ domain, }: {
|
|
184
184
|
domain: string;
|
|
185
|
-
deploymentId: string;
|
|
186
185
|
}): Promise<HandleDeleteDomainMappingResponse>;
|
|
187
186
|
listDomainMappings({ domain, domainOwnership, limit, offset, }: {
|
|
188
187
|
domain?: string;
|
package/dist/index.cjs
CHANGED
|
@@ -584,23 +584,19 @@ ${response.error.message}`);
|
|
|
584
584
|
* Remove a domain mapping for a deployment.
|
|
585
585
|
*/
|
|
586
586
|
async removeDomainMapping({
|
|
587
|
-
domain
|
|
588
|
-
deploymentId
|
|
587
|
+
domain
|
|
589
588
|
}) {
|
|
590
589
|
const response = await handleDeleteDomainMapping({
|
|
591
590
|
client: this.client,
|
|
592
591
|
path: {
|
|
593
592
|
domain
|
|
594
|
-
},
|
|
595
|
-
body: {
|
|
596
|
-
deploymentId
|
|
597
593
|
}
|
|
598
594
|
});
|
|
599
595
|
if (response.data) {
|
|
600
596
|
return response.data;
|
|
601
597
|
}
|
|
602
598
|
throw new Error(
|
|
603
|
-
`Failed to remove domain mapping for domain ${domain}
|
|
599
|
+
`Failed to remove domain mapping for domain ${domain}: ${response.error.message}`
|
|
604
600
|
);
|
|
605
601
|
}
|
|
606
602
|
async listDomainMappings({
|
|
@@ -621,7 +617,9 @@ ${response.error.message}`);
|
|
|
621
617
|
if (response.data) {
|
|
622
618
|
return response.data;
|
|
623
619
|
}
|
|
624
|
-
throw new Error(
|
|
620
|
+
throw new Error(
|
|
621
|
+
`Failed to list domain mappings: ${JSON.stringify(response.error)}`
|
|
622
|
+
);
|
|
625
623
|
}
|
|
626
624
|
/**
|
|
627
625
|
* Create a new git repository.
|
package/dist/index.d.cts
CHANGED
|
@@ -180,9 +180,8 @@ declare class FreestyleSandboxes {
|
|
|
180
180
|
/**
|
|
181
181
|
* Remove a domain mapping for a deployment.
|
|
182
182
|
*/
|
|
183
|
-
removeDomainMapping({ domain,
|
|
183
|
+
removeDomainMapping({ domain, }: {
|
|
184
184
|
domain: string;
|
|
185
|
-
deploymentId: string;
|
|
186
185
|
}): Promise<HandleDeleteDomainMappingResponse>;
|
|
187
186
|
listDomainMappings({ domain, domainOwnership, limit, offset, }: {
|
|
188
187
|
domain?: string;
|
package/dist/index.d.mts
CHANGED
|
@@ -180,9 +180,8 @@ declare class FreestyleSandboxes {
|
|
|
180
180
|
/**
|
|
181
181
|
* Remove a domain mapping for a deployment.
|
|
182
182
|
*/
|
|
183
|
-
removeDomainMapping({ domain,
|
|
183
|
+
removeDomainMapping({ domain, }: {
|
|
184
184
|
domain: string;
|
|
185
|
-
deploymentId: string;
|
|
186
185
|
}): Promise<HandleDeleteDomainMappingResponse>;
|
|
187
186
|
listDomainMappings({ domain, domainOwnership, limit, offset, }: {
|
|
188
187
|
domain?: string;
|
package/dist/index.mjs
CHANGED
|
@@ -582,23 +582,19 @@ ${response.error.message}`);
|
|
|
582
582
|
* Remove a domain mapping for a deployment.
|
|
583
583
|
*/
|
|
584
584
|
async removeDomainMapping({
|
|
585
|
-
domain
|
|
586
|
-
deploymentId
|
|
585
|
+
domain
|
|
587
586
|
}) {
|
|
588
587
|
const response = await handleDeleteDomainMapping({
|
|
589
588
|
client: this.client,
|
|
590
589
|
path: {
|
|
591
590
|
domain
|
|
592
|
-
},
|
|
593
|
-
body: {
|
|
594
|
-
deploymentId
|
|
595
591
|
}
|
|
596
592
|
});
|
|
597
593
|
if (response.data) {
|
|
598
594
|
return response.data;
|
|
599
595
|
}
|
|
600
596
|
throw new Error(
|
|
601
|
-
`Failed to remove domain mapping for domain ${domain}
|
|
597
|
+
`Failed to remove domain mapping for domain ${domain}: ${response.error.message}`
|
|
602
598
|
);
|
|
603
599
|
}
|
|
604
600
|
async listDomainMappings({
|
|
@@ -619,7 +615,9 @@ ${response.error.message}`);
|
|
|
619
615
|
if (response.data) {
|
|
620
616
|
return response.data;
|
|
621
617
|
}
|
|
622
|
-
throw new Error(
|
|
618
|
+
throw new Error(
|
|
619
|
+
`Failed to list domain mappings: ${JSON.stringify(response.error)}`
|
|
620
|
+
);
|
|
623
621
|
}
|
|
624
622
|
/**
|
|
625
623
|
* Create a new git repository.
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -476,25 +476,20 @@ export class FreestyleSandboxes {
|
|
|
476
476
|
*/
|
|
477
477
|
async removeDomainMapping({
|
|
478
478
|
domain,
|
|
479
|
-
deploymentId,
|
|
480
479
|
}: {
|
|
481
480
|
domain: string;
|
|
482
|
-
deploymentId: string;
|
|
483
481
|
}): Promise<sandbox_openapi.HandleDeleteDomainMappingResponse> {
|
|
484
482
|
const response = await sandbox_openapi.handleDeleteDomainMapping({
|
|
485
483
|
client: this.client,
|
|
486
484
|
path: {
|
|
487
485
|
domain,
|
|
488
486
|
},
|
|
489
|
-
body: {
|
|
490
|
-
deploymentId,
|
|
491
|
-
},
|
|
492
487
|
});
|
|
493
488
|
if (response.data) {
|
|
494
489
|
return response.data;
|
|
495
490
|
}
|
|
496
491
|
throw new Error(
|
|
497
|
-
`Failed to remove domain mapping for domain ${domain}
|
|
492
|
+
`Failed to remove domain mapping for domain ${domain}: ${response.error.message}`
|
|
498
493
|
);
|
|
499
494
|
}
|
|
500
495
|
|
|
@@ -521,7 +516,9 @@ export class FreestyleSandboxes {
|
|
|
521
516
|
if (response.data) {
|
|
522
517
|
return response.data;
|
|
523
518
|
}
|
|
524
|
-
throw new Error(
|
|
519
|
+
throw new Error(
|
|
520
|
+
`Failed to list domain mappings: ${JSON.stringify(response.error)}`
|
|
521
|
+
);
|
|
525
522
|
}
|
|
526
523
|
|
|
527
524
|
/**
|