@shipstatic/ship 0.3.8 → 0.3.9
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/browser.d.ts +8 -6
- package/dist/browser.js +3 -3
- package/dist/browser.js.map +1 -1
- package/dist/cli.cjs +7 -7
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/browser.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _shipstatic_types from '@shipstatic/types';
|
|
2
|
-
import { PingResponse, ConfigResponse, StaticFile, Deployment, DeploymentListResponse, Domain, DomainListResponse, Account, TokenCreateResponse, TokenListResponse, CheckoutSession, SubscriptionStatus,
|
|
2
|
+
import { PingResponse, ConfigResponse, StaticFile, Deployment, DeploymentListResponse, Domain, DomainListResponse, Account, TokenCreateResponse, TokenListResponse, CheckoutSession, SubscriptionStatus, DeployInput, DeploymentResource, DomainResource, AccountResource, TokenResource, SubscriptionResource, PlatformConfig, ValidatableFile, FileValidationResult } from '@shipstatic/types';
|
|
3
3
|
export * from '@shipstatic/types';
|
|
4
4
|
export { Account, DEFAULT_API, DeployInput, Deployment, Domain, FileValidationStatus as FILE_VALIDATION_STATUS, PingResponse, ShipError, ShipErrorType } from '@shipstatic/types';
|
|
5
5
|
|
|
@@ -235,12 +235,10 @@ declare class ApiHttp extends SimpleEvents {
|
|
|
235
235
|
*/
|
|
236
236
|
getSubscriptionStatus(): Promise<SubscriptionStatus>;
|
|
237
237
|
/**
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
* @param subscriptionId - Subscription ID from Creem redirect URL
|
|
238
|
+
* IMPOSSIBLE SIMPLICITY: No sync endpoint needed!
|
|
239
|
+
* Webhooks are the single source of truth.
|
|
240
|
+
* Frontend just polls getSubscriptionStatus() after checkout redirect.
|
|
242
241
|
*/
|
|
243
|
-
syncSubscription(subscriptionId: string): Promise<SubscriptionSyncResponse>;
|
|
244
242
|
checkSPA(files: StaticFile[]): Promise<boolean>;
|
|
245
243
|
private validateFiles;
|
|
246
244
|
private prepareRequestPayload;
|
|
@@ -257,6 +255,10 @@ declare function createDeploymentResource(getApi: () => ApiHttp, clientDefaults?
|
|
|
257
255
|
declare function createDomainResource(getApi: () => ApiHttp, ensureInit?: () => Promise<void>): DomainResource;
|
|
258
256
|
declare function createAccountResource(getApi: () => ApiHttp, ensureInit?: () => Promise<void>): AccountResource;
|
|
259
257
|
declare function createTokenResource(getApi: () => ApiHttp, ensureInit?: () => Promise<void>): TokenResource;
|
|
258
|
+
/**
|
|
259
|
+
* IMPOSSIBLE SIMPLICITY: No sync() method needed!
|
|
260
|
+
* Webhooks are the single source of truth. Frontend just polls status().
|
|
261
|
+
*/
|
|
260
262
|
declare function createSubscriptionResource(getApi: () => ApiHttp, ensureInit?: () => Promise<void>): SubscriptionResource;
|
|
261
263
|
|
|
262
264
|
/**
|