@gigadrive/sdk 0.5.0 → 0.6.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/dist/index.d.mts +59 -0
- package/dist/index.d.ts +59 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1610,6 +1610,29 @@ var ApplicationsResource = class extends BaseResource {
|
|
|
1610
1610
|
query
|
|
1611
1611
|
});
|
|
1612
1612
|
}
|
|
1613
|
+
/**
|
|
1614
|
+
* Creates an application with production and preview environments.
|
|
1615
|
+
*
|
|
1616
|
+
* Requires the `network:applications:write` scope and access to the owning
|
|
1617
|
+
* organization. Application-, deployment-, and function-scoped tokens cannot
|
|
1618
|
+
* create applications.
|
|
1619
|
+
*
|
|
1620
|
+
* @param input - Ownership, display name, and optional repository layout.
|
|
1621
|
+
* @returns The persisted application plus the default production environment
|
|
1622
|
+
* slug, ready for an immediate deployment request.
|
|
1623
|
+
*
|
|
1624
|
+
* @example
|
|
1625
|
+
* ```ts
|
|
1626
|
+
* const app = await client.applications.create({
|
|
1627
|
+
* organizationId: 'org-id',
|
|
1628
|
+
* name: 'Next.js Storefront',
|
|
1629
|
+
* });
|
|
1630
|
+
* console.log(app.id, app.defaultEnvironmentSlug);
|
|
1631
|
+
* ```
|
|
1632
|
+
*/
|
|
1633
|
+
async create(input) {
|
|
1634
|
+
return this.httpClient.post("/applications", input);
|
|
1635
|
+
}
|
|
1613
1636
|
/**
|
|
1614
1637
|
* List the `*.gigadrive.app` hostnames for an application (production alias
|
|
1615
1638
|
* and per-branch aliases).
|