freestyle-sandboxes 0.0.89 → 0.0.90

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 CHANGED
@@ -180,9 +180,8 @@ declare class FreestyleSandboxes {
180
180
  /**
181
181
  * Remove a domain mapping for a deployment.
182
182
  */
183
- removeDomainMapping({ domain, deploymentId, }: {
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, deploymentId, }: {
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} and deployment ${deploymentId}: ${response.error.message}`
599
+ `Failed to remove domain mapping for domain ${domain}: ${response.error.message}`
604
600
  );
605
601
  }
606
602
  async listDomainMappings({
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, deploymentId, }: {
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, deploymentId, }: {
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} and deployment ${deploymentId}: ${response.error.message}`
597
+ `Failed to remove domain mapping for domain ${domain}: ${response.error.message}`
602
598
  );
603
599
  }
604
600
  async listDomainMappings({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freestyle-sandboxes",
3
- "version": "0.0.89",
3
+ "version": "0.0.90",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
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} and deployment ${deploymentId}: ${response.error.message}`
492
+ `Failed to remove domain mapping for domain ${domain}: ${response.error.message}`
498
493
  );
499
494
  }
500
495