@@ -69,144 +69,6 @@ class SDK
6969 'examples ' => '' ,
7070 'test ' => 'false '
7171 ];
72- private array $ errorTypes = [
73- 'GeneralMock ' => 'general_mock ' ,
74- 'GeneralArgumentInvalid ' => 'general_argument_invalid ' ,
75- 'GeneralQueryLimitExceeded ' => 'general_query_limit_exceeded ' ,
76- 'GeneralQueryInvalid ' => 'general_query_invalid ' ,
77- 'GeneralCursorNotFound ' => 'general_cursor_not_found ' ,
78- 'UserPasswordMismatch ' => 'user_password_mismatch ' ,
79- 'PasswordRecentlyUsed ' => 'password_recently_used ' ,
80- 'PasswordPersonalData ' => 'password_personal_data ' ,
81- 'UserPhoneNotFound ' => 'user_phone_not_found ' ,
82- 'UserMissingId ' => 'user_missing_id ' ,
83- 'UserOauth2BadRequest ' => 'user_oauth2_bad_request ' ,
84- 'StorageDeviceNotFound ' => 'storage_device_not_found ' ,
85- 'StorageFileEmpty ' => 'storage_file_empty ' ,
86- 'StorageFileTypeUnsupported ' => 'storage_file_type_unsupported ' ,
87- 'StorageInvalidFileSize ' => 'storage_invalid_file_size ' ,
88- 'StorageInvalidContentRange ' => 'storage_invalid_content_range ' ,
89- 'StorageInvalidAppwriteId ' => 'storage_invalid_appwrite_id ' ,
90- 'GeneralProviderFailure ' => 'general_provider_failure ' ,
91- 'BuildNotReady ' => 'build_not_ready ' ,
92- 'BuildInProgress ' => 'build_in_progress ' ,
93- 'CollectionLimitExceeded ' => 'collection_limit_exceeded ' ,
94- 'DocumentInvalidStructure ' => 'document_invalid_structure ' ,
95- 'DocumentMissingData ' => 'document_missing_data ' ,
96- 'DocumentMissingPayload ' => 'document_missing_payload ' ,
97- 'AttributeUnknown ' => 'attribute_unknown ' ,
98- 'AttributeNotAvailable ' => 'attribute_not_available ' ,
99- 'AttributeFormatUnsupported ' => 'attribute_format_unsupported ' ,
100- 'AttributeDefaultUnsupported ' => 'attribute_default_unsupported ' ,
101- 'AttributeLimitExceeded ' => 'attribute_limit_exceeded ' ,
102- 'AttributeValueInvalid ' => 'attribute_value_invalid ' ,
103- 'AttributeTypeInvalid ' => 'attribute_type_invalid ' ,
104- 'IndexLimitExceeded ' => 'index_limit_exceeded ' ,
105- 'IndexInvalid ' => 'index_invalid ' ,
106- 'ProjectUnknown ' => 'project_unknown ' ,
107- 'ProjectInvalidSuccessUrl ' => 'project_invalid_success_url ' ,
108- 'ProjectInvalidFailureUrl ' => 'project_invalid_failure_url ' ,
109- 'ProjectReservedProject ' => 'project_reserved_project ' ,
110- 'ProjectSmtpConfigInvalid ' => 'project_smtp_config_invalid ' ,
111- 'GraphqlNoQuery ' => 'graphql_no_query ' ,
112- 'GraphqlTooManyQueries ' => 'graphql_too_many_queries ' ,
113- 'GeneralAccessForbidden ' => 'general_access_forbidden ' ,
114- 'GeneralUnauthorizedScope ' => 'general_unauthorized_scope ' ,
115- 'UserJwtInvalid ' => 'user_jwt_invalid ' ,
116- 'UserBlocked ' => 'user_blocked ' ,
117- 'UserInvalidToken ' => 'user_invalid_token ' ,
118- 'UserEmailNotWhitelisted ' => 'user_email_not_whitelisted ' ,
119- 'UserInvalidCode ' => 'user_invalid_code ' ,
120- 'UserIpNotWhitelisted ' => 'user_ip_not_whitelisted ' ,
121- 'UserInvalidCredentials ' => 'user_invalid_credentials ' ,
122- 'UserAnonymousConsoleProhibited ' => 'user_anonymous_console_prohibited ' ,
123- 'UserSessionAlreadyExists ' => 'user_session_already_exists ' ,
124- 'UserUnauthorized ' => 'user_unauthorized ' ,
125- 'UserOauth2Unauthorized ' => 'user_oauth2_unauthorized ' ,
126- 'TeamInvalidSecret ' => 'team_invalid_secret ' ,
127- 'TeamInviteMismatch ' => 'team_invite_mismatch ' ,
128- 'ProjectKeyExpired ' => 'project_key_expired ' ,
129- 'RuleVerificationFailed ' => 'rule_verification_failed ' ,
130- 'ProjectTemplateDefaultDeletion ' => 'project_template_default_deletion ' ,
131- 'GeneralUnknownOrigin ' => 'general_unknown_origin ' ,
132- 'StorageInvalidFile ' => 'storage_invalid_file ' ,
133- 'DocumentDeleteRestricted ' => 'document_delete_restricted ' ,
134- 'GeneralRouteNotFound ' => 'general_route_not_found ' ,
135- 'UserNotFound ' => 'user_not_found ' ,
136- 'UserSessionNotFound ' => 'user_session_not_found ' ,
137- 'UserIdentityNotFound ' => 'user_identity_not_found ' ,
138- 'TeamNotFound ' => 'team_not_found ' ,
139- 'TeamInviteNotFound ' => 'team_invite_not_found ' ,
140- 'TeamMembershipMismatch ' => 'team_membership_mismatch ' ,
141- 'MembershipNotFound ' => 'membership_not_found ' ,
142- 'AvatarSetNotFound ' => 'avatar_set_not_found ' ,
143- 'AvatarNotFound ' => 'avatar_not_found ' ,
144- 'AvatarImageNotFound ' => 'avatar_image_not_found ' ,
145- 'AvatarRemoteUrlFailed ' => 'avatar_remote_url_failed ' ,
146- 'AvatarIconNotFound ' => 'avatar_icon_not_found ' ,
147- 'StorageFileNotFound ' => 'storage_file_not_found ' ,
148- 'StorageBucketNotFound ' => 'storage_bucket_not_found ' ,
149- 'InstallationNotFound ' => 'installation_not_found ' ,
150- 'ProviderRepositoryNotFound ' => 'provider_repository_not_found ' ,
151- 'RepositoryNotFound ' => 'repository_not_found ' ,
152- 'FunctionNotFound ' => 'function_not_found ' ,
153- 'FunctionRuntimeUnsupported ' => 'function_runtime_unsupported ' ,
154- 'BuildNotFound ' => 'build_not_found ' ,
155- 'DeploymentNotFound ' => 'deployment_not_found ' ,
156- 'ExecutionNotFound ' => 'execution_not_found ' ,
157- 'DatabaseNotFound ' => 'database_not_found ' ,
158- 'CollectionNotFound ' => 'collection_not_found ' ,
159- 'DocumentNotFound ' => 'document_not_found ' ,
160- 'AttributeNotFound ' => 'attribute_not_found ' ,
161- 'IndexNotFound ' => 'index_not_found ' ,
162- 'ProjectNotFound ' => 'project_not_found ' ,
163- 'RouterHostNotFound ' => 'router_host_not_found ' ,
164- 'RuleResourceNotFound ' => 'rule_resource_not_found ' ,
165- 'RuleNotFound ' => 'rule_not_found ' ,
166- 'WebhookNotFound ' => 'webhook_not_found ' ,
167- 'KeyNotFound ' => 'key_not_found ' ,
168- 'PlatformNotFound ' => 'platform_not_found ' ,
169- 'VariableNotFound ' => 'variable_not_found ' ,
170- 'MigrationNotFound ' => 'migration_not_found ' ,
171- 'GeneralNotImplemented ' => 'general_not_implemented ' ,
172- 'UserAlreadyExists ' => 'user_already_exists ' ,
173- 'UserEmailAlreadyExists ' => 'user_email_already_exists ' ,
174- 'UserPhoneAlreadyExists ' => 'user_phone_already_exists ' ,
175- 'TeamInviteAlreadyExists ' => 'team_invite_already_exists ' ,
176- 'TeamAlreadyExists ' => 'team_already_exists ' ,
177- 'MembershipAlreadyConfirmed ' => 'membership_already_confirmed ' ,
178- 'StorageFileAlreadyExists ' => 'storage_file_already_exists ' ,
179- 'StorageBucketAlreadyExists ' => 'storage_bucket_already_exists ' ,
180- 'ProviderContributionConflict ' => 'provider_contribution_conflict ' ,
181- 'DatabaseAlreadyExists ' => 'database_already_exists ' ,
182- 'CollectionAlreadyExists ' => 'collection_already_exists ' ,
183- 'DocumentAlreadyExists ' => 'document_already_exists ' ,
184- 'DocumentUpdateConflict ' => 'document_update_conflict ' ,
185- 'AttributeAlreadyExists ' => 'attribute_already_exists ' ,
186- 'IndexAlreadyExists ' => 'index_already_exists ' ,
187- 'ProjectAlreadyExists ' => 'project_already_exists ' ,
188- 'RuleAlreadyExists ' => 'rule_already_exists ' ,
189- 'VariableAlreadyExists ' => 'variable_already_exists ' ,
190- 'MigrationAlreadyExists ' => 'migration_already_exists ' ,
191- 'MigrationInProgress ' => 'migration_in_progress ' ,
192- 'UserPasswordResetRequired ' => 'user_password_reset_required ' ,
193- 'ProjectProviderDisabled ' => 'project_provider_disabled ' ,
194- 'StorageInvalidRange ' => 'storage_invalid_range ' ,
195- 'UserOAuth2ProviderError ' => 'user_oauth2_provider_error ' ,
196- 'GeneralRateLimitExceeded ' => 'general_rate_limit_exceeded ' ,
197- 'GeneralUnknown ' => 'general_unknown ' ,
198- 'GeneralServerError ' => 'general_server_error ' ,
199- 'GeneralProtocolUnsupported ' => 'general_protocol_unsupported ' ,
200- 'GeneralCodesDisabled ' => 'general_codes_disabled ' ,
201- 'RouterDomainNotConfigured ' => 'router_domain_not_configured ' ,
202- 'GeneralUsageDisabled ' => 'general_usage_disabled ' ,
203- 'UserCountExceeded ' => 'user_count_exceeded ' ,
204- 'UserAuthMethodUnsupported ' => 'user_auth_method_unsupported ' ,
205- 'ProjectProviderUnsupported ' => 'project_provider_unsupported ' ,
206- 'GeneralServiceDisabled ' => 'general_service_disabled ' ,
207- 'GeneralSMTPDisabled ' => 'general_smtp_disabled ' ,
208- 'GeneralPhoneDisabled ' => 'general_phone_disabled '
209- ];
21072
21173 /**
21274 * SDK constructor.
@@ -693,8 +555,7 @@ public function generate(string $target): void
693555 'name ' => $ this ->language ->getName (),
694556 'params ' => $ this ->language ->getParams (),
695557 ],
696- 'sdk ' => $ this ->getParams (),
697- 'testData ' => ['enumData ' => $ this ->errorTypes ]
558+ 'sdk ' => $ this ->getParams ()
698559 ];
699560
700561 foreach ($ this ->language ->getFiles () as $ file ) {
0 commit comments