@shipstatic/types 0.3.15 → 0.3.17
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.ts +31 -2
- package/dist/index.js +1 -2
- package/package.json +1 -1
- package/src/index.ts +98 -2
package/dist/index.d.ts
CHANGED
|
@@ -56,8 +56,7 @@ export interface DeploymentListResponse {
|
|
|
56
56
|
export declare const DomainStatus: {
|
|
57
57
|
readonly PENDING: "pending";
|
|
58
58
|
readonly PARTIAL: "partial";
|
|
59
|
-
readonly
|
|
60
|
-
readonly FAILED: "failed";
|
|
59
|
+
readonly SUCCESS: "success";
|
|
61
60
|
};
|
|
62
61
|
export type DomainStatusType = typeof DomainStatus[keyof typeof DomainStatus];
|
|
63
62
|
/**
|
|
@@ -495,6 +494,36 @@ export interface KeysResource {
|
|
|
495
494
|
apiKey: string;
|
|
496
495
|
}>;
|
|
497
496
|
}
|
|
497
|
+
/**
|
|
498
|
+
* All activity event types logged in the system
|
|
499
|
+
*/
|
|
500
|
+
export type ActivityEvent = 'account_create' | 'account_update' | 'account_delete' | 'account_key_generate' | 'account_plan_paid' | 'account_plan_transition' | 'account_suspended' | 'deployment_create' | 'deployment_delete' | 'deployment_claim' | 'domain_create' | 'domain_update' | 'domain_delete' | 'domain_set' | 'domain_confirm' | 'token_create' | 'token_consume' | 'admin_account_plan_update' | 'admin_account_ref_update' | 'admin_account_billing_update' | 'admin_account_tags_update' | 'admin_deployment_delete' | 'admin_domain_delete' | 'billing_suspended' | 'billing_active' | 'billing_canceled' | 'billing_paused' | 'billing_expired' | 'billing_paid' | 'billing_trialing' | 'billing_scheduled_cancel' | 'billing_unpaid' | 'billing_update' | 'billing_past_due' | 'billing_terminated' | 'billing_manual_sync' | 'refund_created' | 'dispute_created';
|
|
501
|
+
/**
|
|
502
|
+
* Activity events visible to users in the dashboard
|
|
503
|
+
*/
|
|
504
|
+
export type UserVisibleActivityEvent = 'account_create' | 'account_update' | 'account_delete' | 'account_key_generate' | 'account_plan_transition' | 'deployment_create' | 'deployment_delete' | 'deployment_claim' | 'domain_create' | 'domain_update' | 'domain_delete' | 'domain_set' | 'domain_confirm' | 'token_create' | 'token_consume';
|
|
505
|
+
/**
|
|
506
|
+
* Activity record returned from the API
|
|
507
|
+
*/
|
|
508
|
+
export interface Activity {
|
|
509
|
+
/** The event type */
|
|
510
|
+
event: ActivityEvent;
|
|
511
|
+
/** Unix timestamp (seconds) when the activity occurred */
|
|
512
|
+
created: number;
|
|
513
|
+
/** Associated deployment ID (if applicable) */
|
|
514
|
+
deployment?: string;
|
|
515
|
+
/** Associated domain name (if applicable) */
|
|
516
|
+
domain?: string;
|
|
517
|
+
/** JSON-encoded metadata (parse with JSON.parse) */
|
|
518
|
+
meta?: string;
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* Response from GET /activities endpoint
|
|
522
|
+
*/
|
|
523
|
+
export interface ActivityListResponse {
|
|
524
|
+
/** Array of activities */
|
|
525
|
+
activities: Activity[];
|
|
526
|
+
}
|
|
498
527
|
/**
|
|
499
528
|
* File status constants for validation state tracking
|
|
500
529
|
*/
|
package/dist/index.js
CHANGED
|
@@ -23,8 +23,7 @@ export const DeploymentStatus = {
|
|
|
23
23
|
export const DomainStatus = {
|
|
24
24
|
PENDING: 'pending',
|
|
25
25
|
PARTIAL: 'partial',
|
|
26
|
-
|
|
27
|
-
FAILED: 'failed'
|
|
26
|
+
SUCCESS: 'success'
|
|
28
27
|
};
|
|
29
28
|
// =============================================================================
|
|
30
29
|
// ACCOUNT TYPES
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -70,8 +70,7 @@ export interface DeploymentListResponse {
|
|
|
70
70
|
export const DomainStatus = {
|
|
71
71
|
PENDING: 'pending',
|
|
72
72
|
PARTIAL: 'partial',
|
|
73
|
-
|
|
74
|
-
FAILED: 'failed'
|
|
73
|
+
SUCCESS: 'success'
|
|
75
74
|
} as const;
|
|
76
75
|
|
|
77
76
|
export type DomainStatusType = typeof DomainStatus[keyof typeof DomainStatus];
|
|
@@ -750,6 +749,103 @@ export interface KeysResource {
|
|
|
750
749
|
create: () => Promise<{ apiKey: string }>;
|
|
751
750
|
}
|
|
752
751
|
|
|
752
|
+
// =============================================================================
|
|
753
|
+
// ACTIVITY TYPES
|
|
754
|
+
// =============================================================================
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* All activity event types logged in the system
|
|
758
|
+
*/
|
|
759
|
+
export type ActivityEvent =
|
|
760
|
+
// Account events
|
|
761
|
+
| 'account_create'
|
|
762
|
+
| 'account_update'
|
|
763
|
+
| 'account_delete'
|
|
764
|
+
| 'account_key_generate'
|
|
765
|
+
| 'account_plan_paid'
|
|
766
|
+
| 'account_plan_transition'
|
|
767
|
+
| 'account_suspended'
|
|
768
|
+
// Deployment events
|
|
769
|
+
| 'deployment_create'
|
|
770
|
+
| 'deployment_delete'
|
|
771
|
+
| 'deployment_claim'
|
|
772
|
+
// Domain events
|
|
773
|
+
| 'domain_create'
|
|
774
|
+
| 'domain_update'
|
|
775
|
+
| 'domain_delete'
|
|
776
|
+
| 'domain_set'
|
|
777
|
+
| 'domain_confirm'
|
|
778
|
+
// Token events
|
|
779
|
+
| 'token_create'
|
|
780
|
+
| 'token_consume'
|
|
781
|
+
// System events (not user-visible)
|
|
782
|
+
| 'admin_account_plan_update'
|
|
783
|
+
| 'admin_account_ref_update'
|
|
784
|
+
| 'admin_account_billing_update'
|
|
785
|
+
| 'admin_account_tags_update'
|
|
786
|
+
| 'admin_deployment_delete'
|
|
787
|
+
| 'admin_domain_delete'
|
|
788
|
+
// Billing events (internal, not shown to users except account_plan_transition)
|
|
789
|
+
| 'billing_suspended'
|
|
790
|
+
| 'billing_active'
|
|
791
|
+
| 'billing_canceled'
|
|
792
|
+
| 'billing_paused'
|
|
793
|
+
| 'billing_expired'
|
|
794
|
+
| 'billing_paid'
|
|
795
|
+
| 'billing_trialing'
|
|
796
|
+
| 'billing_scheduled_cancel'
|
|
797
|
+
| 'billing_unpaid'
|
|
798
|
+
| 'billing_update'
|
|
799
|
+
| 'billing_past_due'
|
|
800
|
+
| 'billing_terminated'
|
|
801
|
+
| 'billing_manual_sync'
|
|
802
|
+
| 'refund_created'
|
|
803
|
+
| 'dispute_created';
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* Activity events visible to users in the dashboard
|
|
807
|
+
*/
|
|
808
|
+
export type UserVisibleActivityEvent =
|
|
809
|
+
| 'account_create'
|
|
810
|
+
| 'account_update'
|
|
811
|
+
| 'account_delete'
|
|
812
|
+
| 'account_key_generate'
|
|
813
|
+
| 'account_plan_transition'
|
|
814
|
+
| 'deployment_create'
|
|
815
|
+
| 'deployment_delete'
|
|
816
|
+
| 'deployment_claim'
|
|
817
|
+
| 'domain_create'
|
|
818
|
+
| 'domain_update'
|
|
819
|
+
| 'domain_delete'
|
|
820
|
+
| 'domain_set'
|
|
821
|
+
| 'domain_confirm'
|
|
822
|
+
| 'token_create'
|
|
823
|
+
| 'token_consume';
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Activity record returned from the API
|
|
827
|
+
*/
|
|
828
|
+
export interface Activity {
|
|
829
|
+
/** The event type */
|
|
830
|
+
event: ActivityEvent;
|
|
831
|
+
/** Unix timestamp (seconds) when the activity occurred */
|
|
832
|
+
created: number;
|
|
833
|
+
/** Associated deployment ID (if applicable) */
|
|
834
|
+
deployment?: string;
|
|
835
|
+
/** Associated domain name (if applicable) */
|
|
836
|
+
domain?: string;
|
|
837
|
+
/** JSON-encoded metadata (parse with JSON.parse) */
|
|
838
|
+
meta?: string;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* Response from GET /activities endpoint
|
|
843
|
+
*/
|
|
844
|
+
export interface ActivityListResponse {
|
|
845
|
+
/** Array of activities */
|
|
846
|
+
activities: Activity[];
|
|
847
|
+
}
|
|
848
|
+
|
|
753
849
|
// =============================================================================
|
|
754
850
|
// FILE UPLOAD TYPES
|
|
755
851
|
// =============================================================================
|