Changeset View
Changeset View
Standalone View
Standalone View
lib/types/endpoints.js
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | const socketPreferredEndpoints = Object.freeze({ | ||||
UPDATE_ENTRY: 'update_entry', | UPDATE_ENTRY: 'update_entry', | ||||
UPDATE_RELATIONSHIPS: 'update_relationships', | UPDATE_RELATIONSHIPS: 'update_relationships', | ||||
UPDATE_ROLE: 'update_role', | UPDATE_ROLE: 'update_role', | ||||
UPDATE_THREAD: 'update_thread', | UPDATE_THREAD: 'update_thread', | ||||
UPDATE_USER_SUBSCRIPTION: 'update_user_subscription', | UPDATE_USER_SUBSCRIPTION: 'update_user_subscription', | ||||
VERIFY_CODE: 'verify_code', | VERIFY_CODE: 'verify_code', | ||||
SIWE_NONCE: 'siwe_nonce', | SIWE_NONCE: 'siwe_nonce', | ||||
SIWE_AUTH: 'siwe_auth', | SIWE_AUTH: 'siwe_auth', | ||||
UPDATE_USER_AVATAR: 'update_user_avatar', | |||||
}); | }); | ||||
type SocketPreferredEndpoint = $Values<typeof socketPreferredEndpoints>; | type SocketPreferredEndpoint = $Values<typeof socketPreferredEndpoints>; | ||||
const httpPreferredEndpoints = Object.freeze({ | const httpPreferredEndpoints = Object.freeze({ | ||||
CREATE_REPORT: 'create_report', | CREATE_REPORT: 'create_report', | ||||
CREATE_REPORTS: 'create_reports', | CREATE_REPORTS: 'create_reports', | ||||
}); | }); | ||||
type HTTPPreferredEndpoint = $Values<typeof httpPreferredEndpoints>; | type HTTPPreferredEndpoint = $Values<typeof httpPreferredEndpoints>; | ||||
Show All 22 Lines |