yext-api 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/yext/api/concerns/account_relations.rb +1 -0
- data/lib/yext/api/concerns/enum_all.rb +1 -1
- data/lib/yext/api/enumerations/error_codes.rb +31 -0
- data/lib/yext/api/enumerations/error_codes/agreements_errors.rb +41 -0
- data/lib/yext/api/enumerations/error_codes/analytics_errors.rb +83 -0
- data/lib/yext/api/enumerations/error_codes/customers_errros.rb +51 -0
- data/lib/yext/api/enumerations/error_codes/ecl_errors.rb +82 -0
- data/lib/yext/api/enumerations/error_codes/feedback_errors.rb +25 -0
- data/lib/yext/api/enumerations/error_codes/general_errors.rb +46 -0
- data/lib/yext/api/enumerations/error_codes/live_api_errors.rb +29 -0
- data/lib/yext/api/enumerations/error_codes/locations_errors.rb +264 -0
- data/lib/yext/api/enumerations/error_codes/optimizations_errors.rb +19 -0
- data/lib/yext/api/enumerations/error_codes/publisher_suggestions_errors.rb +26 -0
- data/lib/yext/api/enumerations/error_codes/reviews_errors.rb +24 -0
- data/lib/yext/api/enumerations/error_codes/social_errors.rb +47 -0
- data/lib/yext/api/enumerations/error_codes/subscriptions_errors.rb +70 -0
- data/lib/yext/api/enumerations/error_codes/suppression_errors.rb +35 -0
- data/lib/yext/api/enumerations/error_codes/users_errors.rb +55 -0
- data/lib/yext/api/version.rb +1 -1
- metadata +18 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d1170885002e5072f44f0f873aa18f25e3d6419
|
4
|
+
data.tar.gz: 3b4ba378a817f1a787585bbd5b1457c76aa04b50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef7ae532a5fe16b3d5857404da8ef200377aadaffb5c7394228c02761186d3ee9ef7d72e2bfc04c288723a142059c10492333f762e5d2480f6b16a8962b4005b
|
7
|
+
data.tar.gz: a8002cc64bd89449bb34ad92a1a8e7820a34179e8683fcaa1ff12f6474c7e49750d098ade37ea2d8edd0369eb202a6202a7f8a9d1c59a49ca14936615fc6dc82
|
data/Gemfile.lock
CHANGED
@@ -24,6 +24,7 @@ module Yext
|
|
24
24
|
|
25
25
|
# KnowledgeApi::AccountSettings
|
26
26
|
has_many :users, class_name: "Yext::Api::KnowledgeApi::AccountSettings::User"
|
27
|
+
has_many :roles, class_name: "Yext::Api::KnowledgeApi::AccountSettings::Role"
|
27
28
|
|
28
29
|
# LiveApi
|
29
30
|
has_many :live_locations, class_name: "Yext::Api::LiveApi::Location"
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Yext
|
4
|
+
module Api
|
5
|
+
module Enumerations
|
6
|
+
# An enumeration class of error codes from Yext
|
7
|
+
#
|
8
|
+
# http://developer.yext.com/docs/error-messages/
|
9
|
+
class ErrorCodes
|
10
|
+
include Yext::Api::Concerns::EnumAll
|
11
|
+
|
12
|
+
# Split the constants up into modules to organize the values a bit more
|
13
|
+
include Yext::Api::Enumerations::ErrorCodes::AgreementsErrors
|
14
|
+
include Yext::Api::Enumerations::ErrorCodes::AnalyticsErrors
|
15
|
+
include Yext::Api::Enumerations::ErrorCodes::CustomersErrros
|
16
|
+
include Yext::Api::Enumerations::ErrorCodes::EclErrors
|
17
|
+
include Yext::Api::Enumerations::ErrorCodes::FeedbackErrors
|
18
|
+
include Yext::Api::Enumerations::ErrorCodes::GeneralErrors
|
19
|
+
include Yext::Api::Enumerations::ErrorCodes::LiveApiErrors
|
20
|
+
include Yext::Api::Enumerations::ErrorCodes::LocationsErrors
|
21
|
+
include Yext::Api::Enumerations::ErrorCodes::OptimizationsErrors
|
22
|
+
include Yext::Api::Enumerations::ErrorCodes::PublisherSuggestionsErrors
|
23
|
+
include Yext::Api::Enumerations::ErrorCodes::ReviewsErrors
|
24
|
+
include Yext::Api::Enumerations::ErrorCodes::SocialErrors
|
25
|
+
include Yext::Api::Enumerations::ErrorCodes::SubscriptionsErrors
|
26
|
+
include Yext::Api::Enumerations::ErrorCodes::SuppressionErrors
|
27
|
+
include Yext::Api::Enumerations::ErrorCodes::UsersErrors
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Yext
|
4
|
+
module Api
|
5
|
+
module Enumerations
|
6
|
+
class ErrorCodes
|
7
|
+
# Agreements error codes
|
8
|
+
#
|
9
|
+
# http://developer.yext.com/docs/error-messages/#agreements-errors
|
10
|
+
module AgreementsErrors
|
11
|
+
include Yext::Api::Concerns::EnumAll
|
12
|
+
|
13
|
+
YAM_ACCOUNT_NOT_FOUND = 1300
|
14
|
+
SPECIFIED_SKUS_UNDER_AGREEMENT_NOT_FOUND = 1301
|
15
|
+
AGREEMENT_WITH_SKUS_NOT_FOUND = 1302
|
16
|
+
YAM_EXISTING_LOCATION_NOT_FOUND = 1303
|
17
|
+
YAM_INVALID_LOCATION_ACCOUNT = 1304
|
18
|
+
YAM_LOCATION_ACCOUNT_NOT_MATCHED = 1305
|
19
|
+
YAM_MULTIPLE_LOCATIONS_FOUND = 1306
|
20
|
+
YAM_NO_LOCATIONS_FOUND = 1307
|
21
|
+
YAM_TRANSACTION_VALIDATION_FAILED = 1308
|
22
|
+
YAM_INVALID_SERVICE_STATUS_PARAMETER = 1309
|
23
|
+
YAM_INVALID_AGREEMENT_ID_PARAMETER = 1310
|
24
|
+
YAM_INVALID_LIMIT_PARAMETER = 1311
|
25
|
+
YAM_INVALID_OFFSET_PARAMETER = 1312
|
26
|
+
YAM_INVALID_ADD_REQUEST_STATUS_PARAMETER = 1313
|
27
|
+
YAM_INVALID_LOCATION_ID_PARAMETER = 1314
|
28
|
+
YAM_INVALID_DATE_FORMAT = 1315
|
29
|
+
YAM_INVALID_ADD_REQUEST_ID_PARAMETER = 1316
|
30
|
+
YAM_ADD_REQUEST_NOT_FOUND = 1317
|
31
|
+
YAM_INVALID_SKU = 1318
|
32
|
+
YAM_NO_MATCHING_SERVICES = 1319
|
33
|
+
YAM_ERROR_CANCEL_SERVICES = 1320
|
34
|
+
YAM_TOO_MANY_LOCATIONS_FOR_V1_TRANSLATION = 1321
|
35
|
+
YAM_TRANSACTION_VALIDATION_ERROR = 1322
|
36
|
+
YAM_NO_SKUS_PROVIDED = 1323
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Yext
|
4
|
+
module Api
|
5
|
+
module Enumerations
|
6
|
+
class ErrorCodes
|
7
|
+
# Analytics error codes
|
8
|
+
# Errors that happen when interacting with the Analytics API
|
9
|
+
#
|
10
|
+
# http://developer.yext.com/docs/error-messages/#analytics-errors
|
11
|
+
module AnalyticsErrors
|
12
|
+
include Yext::Api::Concerns::EnumAll
|
13
|
+
|
14
|
+
SITE_NOT_FOUND = 5000
|
15
|
+
REPORT_KEY_DOES_NOT_EXIST = 5001
|
16
|
+
INSUFFICIENT_LOCATION_ACCESS = 5002
|
17
|
+
DATABASE_PROBLEMS = 5003
|
18
|
+
COULD_NOT_DESERIALIZE = 5004
|
19
|
+
CUSTOMER_ID_NOT_FOUND = 5005
|
20
|
+
INSUFFICIENT_FOLDER_ACCESS = 5006
|
21
|
+
NO_RESULTS_FOUND = 5007
|
22
|
+
CANNOT_SCAN_SITE = 5008
|
23
|
+
SANDBOX_REPORTING_NOT_SUPPORTED = 5009
|
24
|
+
SQL_EXCEPTION = 5010
|
25
|
+
SCAN_SERVER_ERROR = 5011
|
26
|
+
CANNOT_PARSE_QUERY = 5012
|
27
|
+
KEY_INVALID = 5013
|
28
|
+
KEY_REQUIRED = 5014
|
29
|
+
QUERY_UNSPECIFIED = 5015
|
30
|
+
DIMENSIONS_UNSPECIFIED = 5016
|
31
|
+
METRICS_UNSPECIFIED = 5017
|
32
|
+
CANNOT_FILTER = 5018
|
33
|
+
DATE_START_REQUIRED = 5019
|
34
|
+
DATE_END_REQUIRED = 5020
|
35
|
+
START_DATE_BEFORE_END_DATE = 5021
|
36
|
+
DIMENSIONS_INVALID = 5022
|
37
|
+
MAX_REPORTING_DATE_EXCEEDED = 5023
|
38
|
+
FOURSQUARE_DATA_NOT_ACCESSIBLE = 5024
|
39
|
+
YELP_DATA_NOT_ACCESSIBLE = 5025
|
40
|
+
SEARCH_TERM_REPORTING_DISABLED = 5026
|
41
|
+
REPORTING_CUSTOMER_ID_REQUIRED = 5027
|
42
|
+
FOURSQUARE_DIMS_NOT_APPLICABLE = 5028
|
43
|
+
BING_SEARCH_GRANULARITY = 5029
|
44
|
+
DIMENSION_CONFLICT = 5030
|
45
|
+
CUSTOMER_ID_DIMENSION_MUTLI_VALIDITY = 5031
|
46
|
+
CUSTOMER_ID_DIMENSION_PARENT_FOLDER_VALIDITY = 5032
|
47
|
+
SCAN_NAME_REQUIRED = 5033
|
48
|
+
SCAN_ADDRESS_REQUIRED = 5034
|
49
|
+
SCAN_PHONE_REQUIRED = 5035
|
50
|
+
SCAN_SITE_REQUIRED = 5036
|
51
|
+
SCAN_COUNTRY_CODE_INVALID = 5037
|
52
|
+
LISTING_PUT_STATUS_REQUIRED = 5038
|
53
|
+
REPORTING_CUSTOMER_ID_INVALID = 5039
|
54
|
+
ROW_AXIS_SPECIFIED = 5040
|
55
|
+
COLUMN_AXIS_SPECIFIED = 5041
|
56
|
+
FILTER_SPECIFIED = 5042
|
57
|
+
AXIS_SAME_DIMENSION = 5043
|
58
|
+
VALUES_UNSELECTABLE = 5044
|
59
|
+
SEARCH_DATE_END_INVALID = 5045
|
60
|
+
SEARCH_START_INVALID = 5046
|
61
|
+
SEARCH_LIMIT_INVALID = 5047
|
62
|
+
SEARCH_SIZE_EXCEEDED = 5048
|
63
|
+
SEARCH_FREQUENCY_MIN_INVALID = 5049
|
64
|
+
SEARCH_FREQUENCY_MAX_INVALID = 5050
|
65
|
+
SEARCH_FREQUENCY_MAX_INVALID2 = 5051
|
66
|
+
SEARCH_DATE_MALFORMATTED = 5052
|
67
|
+
SEARCH_DATE_REQUIRED = 5053
|
68
|
+
SEARCH_START_LIMIT_MALFORMATTED = 5054
|
69
|
+
SEARCH_FREQUENCY_MAX_MIN_MALFORMATTED = 5055
|
70
|
+
SEARCH_PLATFORM_MALFORMATTED = 5056
|
71
|
+
SEARCH_ENUM_MALFORMATTED = 5057
|
72
|
+
GET_REPORT_FAILED = 5058
|
73
|
+
SCAN_TIMEOUT = 5059
|
74
|
+
INVALID_ACTIVITY_TYPE = 5060
|
75
|
+
INVALID_ACTOR = 5061
|
76
|
+
REPORT_ID_NOT_FOUND = 5062
|
77
|
+
CREATE_REPORT_VALIDATION_ERROR = 5063
|
78
|
+
INVALID_LISTINGS_LIVE_TYPE = 5064
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Yext
|
4
|
+
module Api
|
5
|
+
module Enumerations
|
6
|
+
class ErrorCodes
|
7
|
+
# Customers error codes
|
8
|
+
# Errors that happen when interacting with the Customers API
|
9
|
+
#
|
10
|
+
# http://developer.yext.com/docs/error-messages/#customers-errors
|
11
|
+
module CustomersErrros
|
12
|
+
include Yext::Api::Concerns::EnumAll
|
13
|
+
|
14
|
+
CUSTOMER_NOT_FOUND = 1000
|
15
|
+
UNABLE_TO_GET_ORDER = 1001
|
16
|
+
CANNOT_CHANGE_CUSTOMER_ID = 1002
|
17
|
+
CUSTOMER_ID_PENDING_ORDER = 1003
|
18
|
+
CUSTOMER_ID_TAKEN = 1004
|
19
|
+
CUSTOMER_ID_LATIN1 = 1005
|
20
|
+
UNKNOWN_CUSTOMER_ATTRIBUTE_ID = 1006
|
21
|
+
CUSTOMER_ID_TOO_LONG = 1007
|
22
|
+
BUSINESS_NAME_TOO_LONG = 1008
|
23
|
+
BUSINESS_COUNTRY_TOO_LONG = 1009
|
24
|
+
BUSINESS_LANGUAGE_TOO_LONG = 1010
|
25
|
+
CONTACT_FIRSTNAME_TOO_LONG = 1011
|
26
|
+
CONTACT_LASTNAME_TOO_LONG = 1012
|
27
|
+
CONTACT_EMAIL_TOO_LONG = 1013
|
28
|
+
CONTACT_COUNTRY_TOO_LONG = 1014
|
29
|
+
CONTACT_COUNTRY_INVALID = 1015
|
30
|
+
BUSINESS_COUNTRY_INVALID = 1016
|
31
|
+
CONTACT_EMAIL_INVALID = 1017
|
32
|
+
CUSTOMER_ID_REQUIRED = 1018
|
33
|
+
BUSINESS_NAME_REQUIRED = 1019
|
34
|
+
CONTACT_FIRSTNAME_REQUIRED = 1020
|
35
|
+
CONTACT_LASTNAME_REQUIRED = 1021
|
36
|
+
CONTACT_PHONE_REQUIRED = 1022
|
37
|
+
CONTACT_EMAIL_REQUIRED = 1023
|
38
|
+
SUBSCRIPTIONS_REQUIRED = 1024
|
39
|
+
LOCATIONS_REQUIRED = 1025
|
40
|
+
BUSINESS_COUNTRY_NOT_ELIGIBLE = 1026
|
41
|
+
CANNOT_RETRIEVE_BUSINESS_COUNTRIES = 1027
|
42
|
+
BUSINESS_LANGUAGE_NOT_ELIGIBLE = 1028
|
43
|
+
CANNOT_RETRIEVE_BUSINESS_LANGUAGES = 1029
|
44
|
+
CONTACT_PHONE_INVALID = 1030
|
45
|
+
LOCATION_ID_PENDING_ORDER = 1031
|
46
|
+
BUSINESS_COUNTRY_NOT_MUTABLE = 1032
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Yext
|
4
|
+
module Api
|
5
|
+
module Enumerations
|
6
|
+
class ErrorCodes
|
7
|
+
# ECL error codes
|
8
|
+
#
|
9
|
+
# http://developer.yext.com/docs/error-messages/#ecl-errors
|
10
|
+
module EclErrors
|
11
|
+
include Yext::Api::Concerns::EnumAll
|
12
|
+
|
13
|
+
LIST_LABEL_INDETERMINATE = 6000
|
14
|
+
LIST_LABEL_DOES_NOT_EXIST = 6001
|
15
|
+
LIST_LABEL_EXCEEDED_MAX_LENGTH = 6002
|
16
|
+
LIST_LABEL_UPDATE_FAILURE = 6003
|
17
|
+
COULD_NOT_LOCATE_LIST = 6004
|
18
|
+
UNABLE_TO_PARSE_LIST = 6005
|
19
|
+
LIST_ALREADY_EXISTS_WITH_ID = 6006
|
20
|
+
LIST_ALREADY_EXISTS_WITH_NAME = 6007
|
21
|
+
ERROR_DELETING_LISTS = 6008
|
22
|
+
LIST_IDS_DO_NOT_MATCH = 6009
|
23
|
+
CERTIFICATION_ITEM_TOO_LONG = 6010
|
24
|
+
DUPLICATE_ID_CODE_IN_LIST = 6011
|
25
|
+
EDUCATION_ITEM_TOO_LONG = 6012
|
26
|
+
END_TIME_TOO_EARLY = 6013
|
27
|
+
END_TIME_TOO_LATE = 6014
|
28
|
+
EVENT_TYPE_TOO_LONG = 6015
|
29
|
+
FIXED_PRICE_TOO_HIGH = 6016
|
30
|
+
FIXED_PRICE_TOO_LOW = 6017
|
31
|
+
HIGH_PRICE_NOT_SPECIFIED = 6018
|
32
|
+
HIGH_PRICE_TOO_HIGH = 6019
|
33
|
+
HIGH_PRICE_TOO_LOW = 6020
|
34
|
+
ID_CODE_TOO_LONG = 6021
|
35
|
+
INVALID_END_TIME = 6022
|
36
|
+
INVALID_ID_CODE = 6023
|
37
|
+
INVALID_PHOTO = 6024
|
38
|
+
INVALID_PHOTOS = 6025
|
39
|
+
INVALID_START_TIME = 6026
|
40
|
+
INVALID_URL = 6027
|
41
|
+
INVALID_VIDEO_URL = 6028
|
42
|
+
ITEM_DESCRIPTION_TOO_LONG = 6029
|
43
|
+
ITEM_NAME_NOT_SPECIFIED = 6030
|
44
|
+
ITEM_NAME_TOO_LONG = 6031
|
45
|
+
LIST_NAME_NOT_SPECIFIED = 6032
|
46
|
+
LIST_NAME_TOO_LONG = 6033
|
47
|
+
LIST_TITLE_NOT_SPECIFIED = 6034
|
48
|
+
LIST_TITLE_TOO_LONG = 6035
|
49
|
+
LIST_TYPE_NOT_SPECIFIED = 6036
|
50
|
+
LOW_PRICE_GREATER_THAN_HIGH_PRICE = 6037
|
51
|
+
LOW_PRICE_NOT_SPECIFIED = 6038
|
52
|
+
LOW_PRICE_TOO_HIGH = 6039
|
53
|
+
LOW_PRICE_TOO_LOW = 6040
|
54
|
+
PRICE_TEXT_TOO_LONG = 6041
|
55
|
+
PRICE_OPTION_TEXT_TOO_LONG = 6042
|
56
|
+
SECTION_DESCRIPTION_TOO_LONG = 6043
|
57
|
+
SECTION_NAME_NOT_SPECIFIED = 6044
|
58
|
+
SECTION_NAME_TOO_LONG = 6045
|
59
|
+
SERVICE_ITEM_TOO_LONG = 6046
|
60
|
+
START_TIME_AFTER_END_TIME = 6047
|
61
|
+
START_TIME_NOT_SPECIFIED = 6048
|
62
|
+
START_TIME_TOO_EARLY = 6049
|
63
|
+
START_TIME_TOO_LATE = 6050
|
64
|
+
TITLE_TOO_LONG = 6051
|
65
|
+
TOO_MANY_CERTIFICATION_ITEMS = 6052
|
66
|
+
TOO_MANY_EDUCATION_ITEMS = 6053
|
67
|
+
TOO_MANY_GALLERY_IMAGES = 6054
|
68
|
+
TOO_MANY_ITEMS = 6055
|
69
|
+
TOO_MANY_EVENTS = 6056
|
70
|
+
TOO_MANY_PRICE_OPTIONS = 6057
|
71
|
+
TOO_MANY_SECTIONS = 6058
|
72
|
+
TOO_MANY_SERVICE_ITEMS = 6059
|
73
|
+
URL_TOO_LONG = 6060
|
74
|
+
MALFORMED_ECL_CONTENT = 6061
|
75
|
+
LIST_UNEXPECTED_ERROR = 6062
|
76
|
+
LIST_LANGUAGE_DISABLED = 6063
|
77
|
+
LIST_HAS_NO_SECTIONS = 6064
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Yext
|
4
|
+
module Api
|
5
|
+
module Enumerations
|
6
|
+
class ErrorCodes
|
7
|
+
# Feedback error codes
|
8
|
+
#
|
9
|
+
# http://developer.yext.com/docs/error-messages/#feedback-errors
|
10
|
+
module FeedbackErrors
|
11
|
+
include Yext::Api::Concerns::EnumAll
|
12
|
+
|
13
|
+
FEEDBACK_MISSING_AUTHOR = 8000
|
14
|
+
FEEDBACK_MISSING_SCORE = 8001
|
15
|
+
FEEDBACK_MISSING_MESAGE = 8002
|
16
|
+
FEEDBACK_INVALID_EMAIL = 8003
|
17
|
+
FEEDBACK_INVALID_SCORE_RANGE = 8006
|
18
|
+
FEEDBACK_MISSING_FEATURE = 8007
|
19
|
+
FEEDBACK_INVALID_STATUS = 8008
|
20
|
+
FEEDBACK_INVITATION_MISSING = 8009
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Yext
|
4
|
+
module Api
|
5
|
+
module Enumerations
|
6
|
+
class ErrorCodes
|
7
|
+
# General error codes
|
8
|
+
# These are errors that can happen across all APIs
|
9
|
+
#
|
10
|
+
# http://developer.yext.com/docs/error-messages/#general-errors
|
11
|
+
module GeneralErrors
|
12
|
+
include Yext::Api::Concerns::EnumAll
|
13
|
+
|
14
|
+
INVALID_API_KEY = 1
|
15
|
+
INVALID_CREDENTIALS = 2
|
16
|
+
INVALID_USERNAME_PASSWORD = 3
|
17
|
+
INSUFFICIENT_PRIVILEGES = 4
|
18
|
+
UNABLE_TO_READ_REQUEST = 5
|
19
|
+
CONTENT_TYPE_NOT_ACCEPTED = 6
|
20
|
+
RESOURCE_DOES_NOT_EXIST = 7
|
21
|
+
UNEXPECTED_EXCEPTION = 8
|
22
|
+
SERVER_ERROR = 9
|
23
|
+
OPERATION_NOT_SUPPORTED = 10
|
24
|
+
NO_VALID_AUTHENTICATION_FOUND = 11
|
25
|
+
EXTERNAL_IDS_NO_SPECIAL_CHARACTERS = 12
|
26
|
+
INSUFFICIENT_ACCESS = 13
|
27
|
+
INSUFFICENT_FEATURE_ACCESS = 14
|
28
|
+
UNABLE_TO_DETERMINE_SERIALIZATION = 15
|
29
|
+
PROBLEM_DESERIALIZING = 16
|
30
|
+
UNHANDLED_PROBLEM_DESERIALIZING = 16
|
31
|
+
SERIALIZATION_PLUGIN_EXCEPTION = 17
|
32
|
+
INVALID_IP = 18
|
33
|
+
ACCOUNT_LOCKED = 19
|
34
|
+
INSUFFICIENT_APP_ACCESS = 20
|
35
|
+
BAD_PARAMETER = 21
|
36
|
+
MISSING_REQUIRED_VALUE = 22
|
37
|
+
DOES_NOT_SUPPORT_ALL_MACRO = 23
|
38
|
+
MISSING_REQUEST_BODY = 24
|
39
|
+
INVALID_ACCESS_TOKEN = 25
|
40
|
+
GATEWAY_TIMEOUT = 26
|
41
|
+
EXCEEDED_QUOTA = 42
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Yext
|
4
|
+
module Api
|
5
|
+
module Enumerations
|
6
|
+
class ErrorCodes
|
7
|
+
# Live API error codes
|
8
|
+
#
|
9
|
+
# http://developer.yext.com/docs/error-messages/#live-api-errors
|
10
|
+
module LiveApiErrors
|
11
|
+
include Yext::Api::Concerns::EnumAll
|
12
|
+
|
13
|
+
BAD_FIELDS_PARAMETER = 1500
|
14
|
+
BAD_LIMIT_PARAMETER = 1501
|
15
|
+
BAD_OFFSET_PARAMETER = 1502
|
16
|
+
BAD_FILTERS_PARAMETER = 1503
|
17
|
+
BAD_GEOCODING_PARAMETERS = 1504
|
18
|
+
BAD_LANGUAGES_PARAMETER = 1505
|
19
|
+
BAD_LANGUAGE_CODE_PARAMETER = 1506
|
20
|
+
BAD_RADIUS_PARAMETER = 1507
|
21
|
+
BAD_GEOCODING_BIAS_PARAMETER = 1508
|
22
|
+
EMPTY_LIST_ID_PARAMETER = 1509
|
23
|
+
EMPTY_LOCATION_ID_PARAMETER = 1510
|
24
|
+
EMPTY_LANGUAGE_CODE_PARAMETER = 1511
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,264 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Yext
|
4
|
+
module Api
|
5
|
+
module Enumerations
|
6
|
+
class ErrorCodes
|
7
|
+
# Locations error codes
|
8
|
+
#
|
9
|
+
# http://developer.yext.com/docs/error-messages/#locations-errors
|
10
|
+
|
11
|
+
# rubocop:disable Metrics/ModuleLength
|
12
|
+
module LocationsErrors
|
13
|
+
include Yext::Api::Concerns::EnumAll
|
14
|
+
|
15
|
+
LOCATION_NOT_FOUND = 2000
|
16
|
+
CANNOT_ACCESS_LOCATION = 2001
|
17
|
+
PROFILE_DOES_NOT_EXIST_FOR_LANGUAGE = 2002
|
18
|
+
CANNOT_REMOVE_PRIMARY_PROFILE = 2003
|
19
|
+
INVALID_START_VALUE = 2004
|
20
|
+
INVALID_LIMIT_VALUE = 2005
|
21
|
+
LOCATION_NOT_UPDATED = 2006
|
22
|
+
LANGUAGE_PROFILES_NOT_ENABLED = 2007
|
23
|
+
DUPLICATE_LOCATION_ID = 2008
|
24
|
+
ERROR_LOADING_PHOTO = 2009
|
25
|
+
INVALID_KEYWORD = 2010
|
26
|
+
CUSTOM_KEYWORD_VALUES = 2011
|
27
|
+
NON_EXISTENT_KEYWORD_OPTION = 2012
|
28
|
+
KEYWORD_LIMIT_EXCEEDED = 2013
|
29
|
+
LOCATION_UPDATE_FAILED = 2014
|
30
|
+
LOCATION_UNKNOWN_FOLDER = 2015
|
31
|
+
LOCATION_VALIDATION_FAILED = 2016
|
32
|
+
LOCATION_ID_TAKEN = 2017
|
33
|
+
CANNOT_CHANGE_LOCATION_ID = 2018
|
34
|
+
LOCATION_EMAIL_NULL = 2019
|
35
|
+
LOCATION_ID_MAX = 2020
|
36
|
+
LOCATION_ID_LATIN1 = 2021
|
37
|
+
LOCATION_ID_TOO_LONG = 2022
|
38
|
+
LOCATION_NAME_TOO_LONG = 2023
|
39
|
+
LOCATION_ADDRESS_TOO_LONG = 2024
|
40
|
+
LOCATION_ADDRESS2_TOO_LONG = 2025
|
41
|
+
LOCATION_DISPLAY_ADDRESS_TOO_LONG = 2026
|
42
|
+
LOCATION_SUBLOCALITY_TOO_LONG = 2027
|
43
|
+
LOCATION_CITY_TOO_LONG = 2028
|
44
|
+
LOCATION_STATE_TOO_LONG = 2029
|
45
|
+
LOCATION_ZIP_TOO_LONG = 2030
|
46
|
+
LOCATION_COUNTRY_TOO_LONG = 2031
|
47
|
+
LOCATION_COUNTRY_INVALID = 2032
|
48
|
+
LOCATION_LANGUAGE_TOO_LONG = 2033
|
49
|
+
LOCATION_SPECIAL_OFFER_TOO_LONG = 2034
|
50
|
+
LOCATION_SPECIAL_OFFER_URL_TOO_LONG = 2035
|
51
|
+
LOCATION_WEBSITE_TOO_LONG = 2036
|
52
|
+
LOCATION_DISPLAY_WEBSITE_TOO_LONG = 2037
|
53
|
+
LOCATION_RESERVATION_WEBSITE_TOO_LONG = 2038
|
54
|
+
LOCATION_DESCRIPTION_TOO_LONG = 2039
|
55
|
+
LOCATION_ADDITIONAL_HOURS_TOO_LONG = 2040
|
56
|
+
LOCATION_YEAR_TOO_LONG = 2041
|
57
|
+
LOCATION_TWITTER_TOO_LONG = 2042
|
58
|
+
LOCATION_FACEBOOK_TOO_LONG = 2043
|
59
|
+
LOCATION_FB_COVER_URL_REQUIRED = 2044
|
60
|
+
LOCATION_FB_COVER_URL_TOO_LONG = 2045
|
61
|
+
LOCATION_FB_COVER_URL_INVALID = 2046
|
62
|
+
LOCATION_FACEBOOK_COVER_DESCRIPTION_TOO_LONG = 2047
|
63
|
+
LOCATION_FB_PROFILE_PIC_URL_REQUIRED = 2048
|
64
|
+
LOCATION_FB_PROFILE_PIC_URL_TOO_LONG = 2049
|
65
|
+
LOCATION_FB_PROFILE_PIC_URL_INVALID = 2050
|
66
|
+
LOCATION_FACEBOOK_PROFILE_DESCRIPTION_TOO_LONG = 2051
|
67
|
+
LOCATION_ASSOCIATIONS_EMPTY_ELEMENT = 2052
|
68
|
+
LOCATION_BRANDS_EMPTY_ELEMENT = 2053
|
69
|
+
LOCATION_KEYWORDS_EMPTY_ELEMENT = 2054
|
70
|
+
LOCATION_LANGUAGES_EMPTY_ELEMENT = 2055
|
71
|
+
LOCATION_PRODUCTS_EMPTY_ELEMENT = 2056
|
72
|
+
LOCATION_SERVICES_EMPTY_ELEMENT = 2057
|
73
|
+
LOCATION_SPECIALTIES_EMPTY_ELEMENT = 2058
|
74
|
+
LOCATION_ASSOCIATIONS_LARGE_ELEMENT = 2059
|
75
|
+
LOCATION_BRANDS_LARGE_ELEMENT = 2060
|
76
|
+
LOCATION_KEYWORDS_LARGE_ELEMENT = 2061
|
77
|
+
LOCATION_LANGUAGES_LARGE_ELEMENT = 2062
|
78
|
+
LOCATION_PRODUCTS_LARGE_ELEMENT = 2063
|
79
|
+
LOCATION_SERVICES_LARGE_ELEMENT = 2064
|
80
|
+
LOCATION_SPECIALTIES_LARGE_ELEMENT = 2065
|
81
|
+
LOCATION_ID_REQUIRED = 2066
|
82
|
+
LOCATION_NAME_REQUIRED = 2067
|
83
|
+
LOCATION_PHONE_REQUIRED = 2068
|
84
|
+
LOCATION_COUNTRY_NOT_ELIGIBLE = 2069
|
85
|
+
LOCATION_COUNTRY_NOT_MUTABLE = 2070
|
86
|
+
LOCATION_COUNTRY_NONE_ELIGIBLE = 2071
|
87
|
+
LOCATION_ADDRESS_REQUIRED = 2072
|
88
|
+
LOCATION_ADDRESS2_REQUIRED = 2073
|
89
|
+
LOCATION_DISPLAY_ADDRESS_REQUIRED = 2074
|
90
|
+
LOCATION_CITY_REQUIRED = 2075
|
91
|
+
LOCATION_STATE_REQUIRED = 2076
|
92
|
+
LOCATION_ZIP_REQUIRED = 2077
|
93
|
+
LOCATION_SUBLOCALITY_REQUIRED = 2078
|
94
|
+
LOCATION_CATEGORIES_REQUIRED = 2079
|
95
|
+
LOCATION_ADDRESS_INVALID = 2080
|
96
|
+
LOCATION_ADDRESS_PO_BOX = 2081
|
97
|
+
LOCATION_ADDRESS2_PO_BOX = 2082
|
98
|
+
LOCATION_DISPLAY_ADDRESS_PO_BOX = 2083
|
99
|
+
LOCATION_SUBLOCALITY_INVALID = 2084
|
100
|
+
LOCATION_STATE_INVALID = 2085
|
101
|
+
LOCATION_ZIP_INVALID = 2086
|
102
|
+
LOCATION_PHONE_INVALID = 2087
|
103
|
+
LOCATION_LOCAL_PHONE_INVALID = 2088
|
104
|
+
LOCATION_ALTERNATE_PHONE_INVALID = 2089
|
105
|
+
LOCATION_FAX_PHONE_INVALID = 2090
|
106
|
+
LOCATION_MOBILE_PHONE_INVALID = 2091
|
107
|
+
LOCATION_TOLL_FREE_PHONE_INVALID = 2092
|
108
|
+
LOCATION_TTY_PHONE_INVALID = 2093
|
109
|
+
LOCATION_TRACKED_LOCAL_PHONE = 2094
|
110
|
+
LOCATION_LOCAL_PHONE_NON_TOLL_FREE = 2095
|
111
|
+
LOCATION_DISPLAY_LAT_INVALID = 2096
|
112
|
+
LOCATION_ROUTABLE_LAT_INVALID = 2097
|
113
|
+
LOCATION_DISPLAY_LNG_INVALID = 2098
|
114
|
+
LOCATION_ROUTABLE_LNG_INVALID = 2099
|
115
|
+
LOCATION_CATEGORIES_BOTH_PROVIDED = 2101
|
116
|
+
LOCATION_CATEGORIES_EMPTY = 2102
|
117
|
+
LOCATION_WEBSITE_INVALID = 2103
|
118
|
+
LOCATION_DISPLAY_WEBSITE_INVALID = 2104
|
119
|
+
LOCATION_RESERVATION_WEBSITE_INVALID = 2105
|
120
|
+
LOCATION_SPECIAL_OFFER_WEBSITE_INVALID = 2106
|
121
|
+
LOCATION_VIDEO_WEBSITE_INVALID = 2107
|
122
|
+
LOCATION_EMAIL_TOO_LONG = 2108
|
123
|
+
LOCATION_EMAILS_MAX_EXCEEDED = 2109
|
124
|
+
LOCATION_PROMOTIONS_MAX_EXCEEDED = 2110
|
125
|
+
LOCATION_IS_CLOSED_INVALID = 2112
|
126
|
+
LOCATION_CLOSED_DATE_SPECIFIED = 2113
|
127
|
+
LOCATION_CLOSED_DATE_INVALID = 2114
|
128
|
+
LOCATION_LOGO_URL_REQUIRED = 2115
|
129
|
+
LOCATION_PHOTO_URL_REQUIRED = 2116
|
130
|
+
LOCATION_LIST_LABELS_INVALID = 2117
|
131
|
+
PROFILE_LANGUAGE_REQUIRED = 2118
|
132
|
+
PROFILE_LANGUAGE_USED = 2119
|
133
|
+
PROFILE_LANGUAGE_INELIGIBLE = 2120
|
134
|
+
PROFILE_FIELD_RESTRICTED = 2121
|
135
|
+
PROFILE_FIELD_HAS_ASSET = 2122
|
136
|
+
LOCATION_FB_COVER_NARROW = 2123
|
137
|
+
LOCATION_FB_PROFILE_PIC_NARROW = 2124
|
138
|
+
LOCATION_FB_PROFILE_PIC_SHORT = 2125
|
139
|
+
LOCATION_HOURS_INVALID = 2126
|
140
|
+
LOCATION_HOLIDAY_HOURS_DATE_REQUIRED = 2127
|
141
|
+
LOCATION_HOLIDAY_HOURS_HOUR_REQUIRED = 2128
|
142
|
+
LOCATION_HOLIDAY_HOURS_DUPLICATE_DATE = 2129
|
143
|
+
LOCATION_HOLIDAY_HOURS_INVALID = 2130
|
144
|
+
LOCATION_HOLIDAY_TIMES_DATE_REQUIRED = 2131
|
145
|
+
LOCATION_HOLIDAY_TIMES_TIME_REQUIRED = 2132
|
146
|
+
LOCATION_HOLIDAY_TIMES_DUPLICATE_DATE = 2133
|
147
|
+
LOCATION_HOLIDAY_TIMES_INVALID = 2134
|
148
|
+
LOCATION_CATEGORIES_INVALID = 2135
|
149
|
+
LOCATION_CATEGORIES_UNSELECTABLE = 2136
|
150
|
+
LOCATION_CATEGORIES_NOT_APPLICABLE = 2137
|
151
|
+
LOCATION_CATEGORIES_CHAIN_EXCEEDED = 2138
|
152
|
+
LOCATION_CATEGORIES_MAX_EXCEEDED = 2139
|
153
|
+
LOCATION_CATEGORIES_COUNTRY_INVALID = 2140
|
154
|
+
LOCATION_LANGUAGE_INVALID = 2141
|
155
|
+
LOCATION_LANGUAGE_INELIGIBLE = 2142
|
156
|
+
LOCATION_LANGUAGE_UNABLE_TO_VALIDATE = 2143
|
157
|
+
LOCATION_LIST_ID_REQUIRED = 2144
|
158
|
+
LOCATION_LIST_ID_NONEXISTENT = 2145
|
159
|
+
LOCATION_LIST_ID_DUPLICATE = 2146
|
160
|
+
LOCATION_LIST_TOO_MANY = 2147
|
161
|
+
LOCATION_LIST_LABEL_NONEXISTENT = 2148
|
162
|
+
LOCATION_LIST_LABEL_TOO_LONG = 2149
|
163
|
+
LOCATION_CUSTOM_FIELDS_INVALID_BOOLEAN = 2150
|
164
|
+
LOCATION_CUSTOM_FIELDS_TEXT_LIMIT = 2151
|
165
|
+
LOCATION_CUSTOM_FIELDS_INVALID_DATE = 2152
|
166
|
+
LOCATION_CUSTOM_FIELDS_INVALID_NUMBER = 2153
|
167
|
+
LOCATION_CUSTOM_FIELDS_EMPTY_HOURS = 2154
|
168
|
+
LOCATION_CUSTOM_FIELDS_HOURS_INVALID = 2155
|
169
|
+
LOCATION_CUSTOM_FIELDS_HOURS_TOO_LONG = 2156
|
170
|
+
LOCATION_CUSTOM_FIELDS_EMPTY_DAILY_TIMES = 2157
|
171
|
+
LOCATION_CUSTOM_FIELDS_DAILY_TIMES_INVALID = 2158
|
172
|
+
LOCATION_CUSTOM_FIELDS_MULTILINE_LIMIT = 2159
|
173
|
+
LOCATION_CUSTOM_FIELDS_INVALID_URL = 2160
|
174
|
+
LOCATION_CUSTOM_FIELDS_TOO_MANY_ITEMS = 2161
|
175
|
+
LOCATION_CUSTOM_FIELDS_EMPTY_ITEMS = 2162
|
176
|
+
LOCATION_CUSTOM_FIELDS_MAX_CHARS = 2163
|
177
|
+
LOCATION_CUSTOM_FIELDS_PHOTO_URL_REQUIRED = 2164
|
178
|
+
LOCATION_CUSTOM_FIELDS_GALLERY_URL_REQUIRED = 2165
|
179
|
+
LOCATION_CUSTOM_FIELDS_INVALID_OPTION = 2166
|
180
|
+
LOCATION_CUSTOM_FIELDS_INVALID_OPTIONS = 2167
|
181
|
+
LOCATION_CUSTOM_FIELDS_UNALLOWED_OPTION = 2168
|
182
|
+
LOCATION_CUSTOM_FIELDS_UNALLOWED_OPTIONS = 2169
|
183
|
+
LOCATION_SPECIAL_OFFER_EMPTY = 2170
|
184
|
+
PROFILE_LANGUAGE_INVALID = 2171
|
185
|
+
LOCATION_IOS_APP_URL_INVALID = 2172
|
186
|
+
LOCATION_ANDROID_APP_URL_INVALID = 2173
|
187
|
+
LOCATION_INSTAGRAM_TOO_LONG = 2174
|
188
|
+
LOCATION_INSTAGRAM_INVALID = 2175
|
189
|
+
LOCATION_WIFI_NETWORK_NAME_REQUIRED = 2176
|
190
|
+
LOCATION_IN_STORE_COUPON_HEADLINE_REQUIRED = 2177
|
191
|
+
LOCATION_IN_STORE_COUPON_HEADLINE_TOO_LONG = 2178
|
192
|
+
LOCATION_IN_STORE_COUPON_DETAIL_REQUIRED = 2179
|
193
|
+
LOCATION_IN_STORE_COUPON_DETAIL_TOO_LONG = 2180
|
194
|
+
LOCATION_IN_STORE_COUPON_BARCODE_TYPE_REQUIRED = 2181
|
195
|
+
LOCATION_IN_STORE_COUPON_BARCODE_TYPE_INVALID = 2182
|
196
|
+
LOCATION_IN_STORE_COUPON_BARCODE_CONTENT_REQUIRED = 2183
|
197
|
+
LOCATION_IN_STORE_COUPON_EXPIRATION_INVALID = 2184
|
198
|
+
LOCATION_IN_STORE_CONTACT_TOO_LONG = 2185
|
199
|
+
PROFILE_NO_XONE = 2186
|
200
|
+
LOCATION_CUSTOM_FIELDS_VIDEO_URL_REQUIRED = 2187
|
201
|
+
LOCATION_CUSTOM_FIELDS_VIDEO_INVALID_URL = 2188
|
202
|
+
LOCATION_CUSTOM_FIELDS_VIDEO_DESCRIPTION_TOO_LONG = 2189
|
203
|
+
INVALID_SEARCH_IDS = 2190
|
204
|
+
LOCATION_GMB_COVER_URL_REQUIRED = 2191
|
205
|
+
LOCATION_GMB_COVER_URL_TOO_LONG = 2192
|
206
|
+
LOCATION_GMB_COVER_URL_INVALID = 2193
|
207
|
+
LOCATION_GMB_COVER_DESCRIPTION_TOO_LONG = 2194
|
208
|
+
LOCATION_GMB_PROFILE_PIC_URL_REQUIRED = 2195
|
209
|
+
LOCATION_GMB_PROFILE_PIC_URL_TOO_LONG = 2196
|
210
|
+
LOCATION_GMB_PROFILE_PIC_URL_INVALID = 2197
|
211
|
+
LOCATION_GMB_PROFILE_DESCRIPTION_TOO_LONG = 2198
|
212
|
+
LOCATION_GMB_COVER_SIZE = 2199
|
213
|
+
LOCATION_GMB_COVER_RATIO = 2200
|
214
|
+
LOCATION_GMB_PROFILE_SIZE = 2201
|
215
|
+
LOCATION_GMB_PROFILE_RATIO = 2202
|
216
|
+
LOCATION_SERVICE_AREA_INVALID_RADIUS = 2203
|
217
|
+
LOCATION_SERVICE_AREA_MISSING_UNITS = 2204
|
218
|
+
LOCATION_SERVICE_AREA_INVALID_UNITS = 2205
|
219
|
+
LOCATION_SERVICE_AREA_TOO_MANY_PLACES = 2206
|
220
|
+
LOCATION_GMB_WEBSITE_OVERRIDE_TOO_LONG = 2207
|
221
|
+
LOCATION_GMB_WEBSITE_OVERRIDE_INVALID_URL = 2208
|
222
|
+
LOCATION_IOS_APP_BAD_URL = 2209
|
223
|
+
LOCATION_ANDROID_APP_BAD_URL = 2210
|
224
|
+
LOCATION_HOLIDAY_HOURS_PAST_DATE = 2211
|
225
|
+
LOCATION_HOLIDAY_HOURS_INVALID_INTERVAL = 2212
|
226
|
+
LOCATION_HOURS_INVALID_INTERVAL = 2213
|
227
|
+
LOCATION_CUSTOM_FIELD_HOURS_INVALID_INTERVAL = 2214
|
228
|
+
LOCATION_HOLIDAY_TIMES_PAST_DATE = 2215
|
229
|
+
LOCATION_INVALID_GASSTATION_FEATURE = 2216
|
230
|
+
LOCATION_INVALID_LABEL = 2217
|
231
|
+
LOCATION_LABEL_LOAD_FAILED = 2218
|
232
|
+
LOCATION_INVALID_GOOGLE_PREFERRED_PHOTO = 2219
|
233
|
+
LOCATION_INVALID_GENDER = 2220
|
234
|
+
LOCATION_HEADSHOT_URL_REQUIRED = 2221
|
235
|
+
LOCATION_INVALID_LOCATION_TYPE = 2222
|
236
|
+
LOCATION_INVALID_EDUCATION_TYPE = 2223
|
237
|
+
INVALID_LOCATION_TYPE = 2224
|
238
|
+
LOCATION_INVALID_UBER_LINK_TYPE = 2225
|
239
|
+
LOCATION_DUPLICATE_LANGUAGE = 2226
|
240
|
+
CANNOT_UPDATE_FACEBOOK_PAGE_URL = 2227
|
241
|
+
SERVICE_AREA_BOTH_SPECIFIED = 2228
|
242
|
+
GALLERY_PHOTO_URL_INVALID = 2229
|
243
|
+
CANNOT_LOAD_GALLERY_PHOTO = 2230
|
244
|
+
CANNOT_LOAD_PHOTO = 2231
|
245
|
+
LOCATION_CUSTOM_FIELDS_UNKNOWN_FIELD = 2232
|
246
|
+
LOCATION_CUSTOM_FIELDS_INVALID_FORMAT = 2233
|
247
|
+
LOCATION_INVALID_RANK_TRACKING_FREQUENCY = 2234
|
248
|
+
LOCATION_INVALID_RANK_TRACKING_KEYWORD = 2235
|
249
|
+
LOCATION_INVALID_RANK_TRACKING_QUERY_TEMPLATE = 2236
|
250
|
+
LOCATION_INVALID_RANK_TRACKING_SITE = 2237
|
251
|
+
LOCATION_NOT_FOUND_404 = 2238
|
252
|
+
LOCATION_INVALID_NPI = 2239
|
253
|
+
CUSTOM_FIELD_NO_ACCESS = 3500
|
254
|
+
CUSTOM_FIELD_INVALID = 3501
|
255
|
+
CUSTOM_FIELD_NOT_OPTION_TYPE = 3502
|
256
|
+
CUSTOM_FIELD_NO_GROUP = 3503
|
257
|
+
CUSTOM_FIELD_VALIDATION_RULE_ERROR = 3504
|
258
|
+
CUSTOM_FIELD_FIELD_TYPE_ERROR = 3505
|
259
|
+
end
|
260
|
+
# rubocop:enable Metrics/ModuleLength
|
261
|
+
end
|
262
|
+
end
|
263
|
+
end
|
264
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Yext
|
4
|
+
module Api
|
5
|
+
module Enumerations
|
6
|
+
class ErrorCodes
|
7
|
+
# Optimizations error codes
|
8
|
+
#
|
9
|
+
# http://developer.yext.com/docs/error-messages/#optimizations-errors
|
10
|
+
module OptimizationsErrors
|
11
|
+
include Yext::Api::Concerns::EnumAll
|
12
|
+
|
13
|
+
OPTIMIZATIONS_BAD_REQUEST = 1400
|
14
|
+
NO_VALID_TASK_IDS = 1401
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Yext
|
4
|
+
module Api
|
5
|
+
module Enumerations
|
6
|
+
class ErrorCodes
|
7
|
+
# Publisher Suggestions error codes
|
8
|
+
#
|
9
|
+
# http://developer.yext.com/docs/error-messages/#publisher-suggestion-errors
|
10
|
+
module PublisherSuggestionsErrors
|
11
|
+
include Yext::Api::Concerns::EnumAll
|
12
|
+
|
13
|
+
SUGGESTION_ALREADY_RESOLVED = 7300
|
14
|
+
SUGGESTION_FOR_LOCATION_NOT_IN_BUSINESS = 7301
|
15
|
+
SUGGESTION_NOT_FOUND = 7302
|
16
|
+
SUGGESTION_UNEXPECTED_UPDATE_ERROR = 7303
|
17
|
+
SUGGESTION_BAD_ID = 7304
|
18
|
+
SUGGESTION_UPDATE_BAD_STATUS = 7305
|
19
|
+
SUGGESTION_OVER_LIMIT = 7306
|
20
|
+
SUGGESTION_LIST_BAD_STATUS = 7307
|
21
|
+
SUGGESTION_NO_USER_PROVIDED = 7308
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Yext
|
4
|
+
module Api
|
5
|
+
module Enumerations
|
6
|
+
class ErrorCodes
|
7
|
+
# Reviews error codes
|
8
|
+
#
|
9
|
+
# http://developer.yext.com/docs/error-messages/#reviews-errors
|
10
|
+
module ReviewsErrors
|
11
|
+
include Yext::Api::Concerns::EnumAll
|
12
|
+
|
13
|
+
REVIEWS_CANNOT_CREATE_EXTERNAL_REVIEW = 2500
|
14
|
+
REVIEWS_INVALID_AUTHOR_EMAIL = 2501
|
15
|
+
REVIEWS_INVALID_RATING_VALUE = 2502
|
16
|
+
REVIEWS_INVALID_STATUS_VALUE = 2503
|
17
|
+
REVIEWS_CANNOT_UPDATE_EXTERNAL_REVIEW = 2504
|
18
|
+
REVIEWS_INVALID_LOCATION_ID = 2505
|
19
|
+
REVIEWS_INVALID_DATE_FORMAT = 2506
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Yext
|
4
|
+
module Api
|
5
|
+
module Enumerations
|
6
|
+
class ErrorCodes
|
7
|
+
# Social error codes
|
8
|
+
#
|
9
|
+
# http://developer.yext.com/docs/error-messages/#social-errors
|
10
|
+
module SocialErrors
|
11
|
+
include Yext::Api::Concerns::EnumAll
|
12
|
+
|
13
|
+
SOCIAL_INVALID_START_VALUE = 9000
|
14
|
+
SOCIAL_INVALID_LIMIT_VALUE = 9001
|
15
|
+
SOCIAL_INVALID_POST_TYPE = 9002
|
16
|
+
SOCIAL_INVALID_KEYWORDS = 9003
|
17
|
+
SOCIAL_INVALID_POST_CONTENT = 9004
|
18
|
+
SOCIAL_CANNOT_POST_LINK_PHOTO = 9005
|
19
|
+
SOCIAL_PHOTO_SIZE_TOO_BIG = 9006
|
20
|
+
SOCIAL_EMPTY_MSG_NOT_ACCEPTED = 9007
|
21
|
+
SOCIAL_MESSAGE_TOO_SHORT = 9008
|
22
|
+
SOCIAL_MESSAGE_TOO_LONG = 9009
|
23
|
+
SOCIAL_SITE_ID_INVALID = 9010
|
24
|
+
SOCIAL_CUSTOMER_ID_INVALID = 9011
|
25
|
+
SOCIAL_POST_ID_INVALID = 9012
|
26
|
+
SOCIAL_LOCATION_ID_INVALID = 9013
|
27
|
+
SOCIAL_MESSAGE_INVALID = 9014
|
28
|
+
SOCIAL_LOCATIONS_INVALID = 9015
|
29
|
+
SOCIAL_SITES_INVALID = 9016
|
30
|
+
SOCIAL_LOCATION_INVALID = 9017
|
31
|
+
SOCIAL_SITE_INVALID = 9018
|
32
|
+
SOCIAL_SITE_UNSUPPORTED = 9019
|
33
|
+
SOCIAL_LOCATION_UNSUPPORTED = 9020
|
34
|
+
SOCIAL_LOCATIONS_UNSUPPORTED = 9021
|
35
|
+
SOCIAL_INSUFFICIENT_CREATE_COMMENT_PRIVILEGES = 9022
|
36
|
+
SOCIAL_INSUFFICIENT_DELETE_COMMENT_PRIVILEGES = 9023
|
37
|
+
SOCIAL_INSUFFICIENT_DELETE_POST_PRIVILEGES = 9024
|
38
|
+
SOCIAL_INSUFFICIENT_ACCESS_POST_PRIVILEGES = 9025
|
39
|
+
SOCIAL_INSUFFICIENT_LIKE_COMMENT_PRIVILEGES = 9026
|
40
|
+
SOCIAL_INSUFFICIENT_LIKE_POST_PRIVILEGES = 9027
|
41
|
+
SOCIAL_POST_NON_EXISTENT = 9028
|
42
|
+
SOCIAL_COMMENT_NON_EXISTENT = 9029
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Yext
|
4
|
+
module Api
|
5
|
+
module Enumerations
|
6
|
+
class ErrorCodes
|
7
|
+
# Subscription Error codes
|
8
|
+
#
|
9
|
+
# http://developer.yext.com/docs/error-messages/#subscriptions-errors
|
10
|
+
module SubscriptionsErrors
|
11
|
+
include Yext::Api::Concerns::EnumAll
|
12
|
+
|
13
|
+
CANNOT_TERMINATE_SUBSCRIPTION = 3000
|
14
|
+
CANNOT_CREATE_I18N_SUBSCRIPTION = 3001
|
15
|
+
CANNOT_ADD_I18N_SUBSCRIPTION = 3002
|
16
|
+
VALID_SUBSCRIPTION_ID_REQUIRED = 3003
|
17
|
+
SUBSCRIPTION_NOT_FOUND = 3004
|
18
|
+
CANNOT_CHANGE_CANCELED_SUBSCRIPTION = 3005
|
19
|
+
TOO_EARLY_TO_RENEW = 3006
|
20
|
+
CANNOT_RENEW_CANCELED_SUBSCRIPTION = 3007
|
21
|
+
SUBSCRIPTION_API_EXCEPTION = 3008
|
22
|
+
BILLING_FAILED = 3009
|
23
|
+
INVALID_OPERATION = 3010
|
24
|
+
NOT_ELIGIBLE_FOR_OFFER = 3011
|
25
|
+
PARENT_BUSINESS_NOT_SUBSCRIBED = 3012
|
26
|
+
ERROR_CREATING_BUSINESS = 3013
|
27
|
+
ERROR_CREATING_LOCATION = 3014
|
28
|
+
ERROR_SUBSCRIBING_SUBSCRIPTION = 3015
|
29
|
+
ERROR_RETRIEVING_SUBSCRIPTION = 3016
|
30
|
+
RENEWING_SUBSCRIPTION_FAILED = 3017
|
31
|
+
SUBSCRIPTION_CANCEL_ERROR = 3018
|
32
|
+
UNCANCELING_SUBSCRIPTION_FAILED = 3019
|
33
|
+
CANNOT_UPDATE_EXPIRED_SUBSCRIPTION = 3020
|
34
|
+
SUBSCRIPTION_CANNOT_BE_CANCELED = 3021
|
35
|
+
CANNOT_CANCEL_EXPIRED_SUBSCRIPTION = 3022
|
36
|
+
CANNOT_ADD_LOCS_TO_INACTIVE_SUBSCRIPTION = 3023
|
37
|
+
ERROR_RETRIEVING_SUBSCRIPTION_BY_KEY = 3024
|
38
|
+
CANNOT_REMOVE_ALL_LOCATIONS = 3025
|
39
|
+
UNEXPECTED_SUBSCRIPTION_STATE = 3026
|
40
|
+
ERROR_UPDATING_SUBSCRIPTION = 3027
|
41
|
+
ERROR_RETRIEVING_AMENDMENT = 3028
|
42
|
+
ERROR_RETRIEVING_SUBSCRIPTION_INFORMATION = 3029
|
43
|
+
SUBSCRIPTION_VALIDATION_ERRORS = 3030
|
44
|
+
NO_SUBSCRIPTION_ACCOUNT_ID = 3031
|
45
|
+
SUBSCRIBE_ERROR = 3032
|
46
|
+
UNKNOWN_OFFER = 3033
|
47
|
+
NON_EXISTENT_LICENSE_PACK = 3034
|
48
|
+
CANNOT_MODIFY_EXPIRED_LICENSE_PACK = 3035
|
49
|
+
MAX_LICENSE_PACK_LIMIT = 3036
|
50
|
+
CANNOT_ADD_LOCS_TO_LICENSE_PACK = 3037
|
51
|
+
MISSING_SUBSCRIPTION_ID = 3038
|
52
|
+
MISSING_OFFER_ID = 3039
|
53
|
+
INELIGIBLE_FOR_OFFER = 3040
|
54
|
+
PARENT_BUSINESS_NOT_SUBSCRIBED2 = 3041
|
55
|
+
SUBSCRIPTION_OFFER_ID_REQUIRED = 3042
|
56
|
+
SUBSCRIPTION_LOCATION_IDS_EMPTY = 3043
|
57
|
+
SUBSCRIPTION_CANCEL_ACTIVATE = 3044
|
58
|
+
SUBSCRIPTION_INVALID_STATUS = 3045
|
59
|
+
SUBSCRIPTION_VOLTRON_CANNOT_CREATE_SUBSCRIPTION = 3046
|
60
|
+
SUBSCRIPTION_CANNOT_HAVE_SPECIFIED_START_DATE = 3047
|
61
|
+
SUBSCRIPTION_START_DATE_BEYOND_NEXT_MONTH = 3048
|
62
|
+
SUBSCRIPTION_START_DATE_IN_PAST = 3049
|
63
|
+
SUBSCRIPTION_INVALID_START_DATE_FORMAT = 3050
|
64
|
+
SUBSCRIPTION_INVALID_COUNTRY_IN_REQUEST = 3051
|
65
|
+
INVALID_OFFER = 3052
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Yext
|
4
|
+
module Api
|
5
|
+
module Enumerations
|
6
|
+
class ErrorCodes
|
7
|
+
# Suppression error codes
|
8
|
+
#
|
9
|
+
# http://developer.yext.com/docs/error-messages/#suppression-errors
|
10
|
+
module SuppressionErrors
|
11
|
+
include Yext::Api::Concerns::EnumAll
|
12
|
+
|
13
|
+
INVALID_SUPPRESSION_TYPE = 7500
|
14
|
+
INVALID_SUPPRESSION_STATUS = 7501
|
15
|
+
SUPPRESSION_CUSTOMER_ID_REQUIRED = 7502
|
16
|
+
SUPPRESSION_LISTING_ID_REQUIRED = 7503
|
17
|
+
SUPPRESSION_STATUS_REQUIRED = 7504
|
18
|
+
DUPLICATES_OVER_LIMIT = 7505
|
19
|
+
DUPLICATES_LIST_BAD_STATUS = 7506
|
20
|
+
DUPLICATES_UNEXPECTED_ERROR = 7507
|
21
|
+
DUPLICATES_LOCATION_ID_REQUIRED = 7508
|
22
|
+
DUPLICATES_PUBLISHER_ID_REQUIRED = 7509
|
23
|
+
DUPLICATES_LISTING_URL_REQUIRED = 7510
|
24
|
+
DUPLICATES_INVALID_LISTING_URL = 7511
|
25
|
+
DUPLICATES_NO_USER_PROVIDED = 7512
|
26
|
+
DUPLICATES_BAD_ID = 7513
|
27
|
+
DUPLICATES_ID_NOT_FOUND = 7514
|
28
|
+
DUPLICATES_ID_NOT_IN_BUSINESS = 7514
|
29
|
+
DUPLICATES_DELETE_DUPLICATE_FAILED = 7515
|
30
|
+
DUPLICATES_SUPPRESS_DUPLICATE_FAILED = 7516
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Yext
|
4
|
+
module Api
|
5
|
+
module Enumerations
|
6
|
+
class ErrorCodes
|
7
|
+
# User error codes
|
8
|
+
#
|
9
|
+
# http://developer.yext.com/docs/error-messages/#users-errors
|
10
|
+
module UsersErrors
|
11
|
+
include Yext::Api::Concerns::EnumAll
|
12
|
+
|
13
|
+
USER_NOT_FOUND = 4000
|
14
|
+
USER_CANNNOT_DELETE_SELF = 4001
|
15
|
+
USER_OWNS_CUSTOMERS = 4002
|
16
|
+
USER_OWNS_FOLDERS = 4003
|
17
|
+
USER_OWNS_LOCATIONS = 4004
|
18
|
+
USER_ID_REQUIRED = 4005
|
19
|
+
USER_ID_TAKEN = 4006
|
20
|
+
CANNOT_CHANGE_USER_ID = 4007
|
21
|
+
USERNAME_NONEMPTY = 4008
|
22
|
+
USERNAME_ILLEGAL_CHARS = 4009
|
23
|
+
USERNAME_TAKEN = 4010
|
24
|
+
ACL_MISSING_ROLE_ID = 4011
|
25
|
+
ACL_MISSING_ON = 4012
|
26
|
+
ACL_MISSING_ON_TYPE = 4013
|
27
|
+
ACL_INVALID_ROLE_ID = 4014
|
28
|
+
ACL_WRONG_CUSTOMER = 4015
|
29
|
+
ACL_UNKNOWN_FOLDER = 4016
|
30
|
+
ACL_UNKNOWN_LOCATION_ID = 4017
|
31
|
+
ACL_LOCATION_NOT_IN_CUSTOMER = 4018
|
32
|
+
USER_ID_TOO_LONG = 4019
|
33
|
+
FIRST_NAME_TOO_LONG = 4020
|
34
|
+
LAST_NAME_TOO_LONG = 4021
|
35
|
+
USERNAME_TOO_LONG = 4022
|
36
|
+
USER_EMAIL_TOO_LONG = 4023
|
37
|
+
COUNTRY_TOO_LONG = 4024
|
38
|
+
PASSWORD_TOO_LONG = 4025
|
39
|
+
USER_EMAIL_INVALID = 4026
|
40
|
+
USER_FIRST_NAME_REQUIRED = 4027
|
41
|
+
USER_LAST_NAME_REQUIRED = 4028
|
42
|
+
USER_EMAIL_REQUIRED = 4029
|
43
|
+
USER_FIRST_NAME_EMPTY = 4030
|
44
|
+
USER_LAST_NAME_EMPTY = 4031
|
45
|
+
USER_EMAIL_EMPTY = 4032
|
46
|
+
USER_COUNTRY_EMPTY = 4033
|
47
|
+
USER_SSO_NOT_ENABLED = 4034
|
48
|
+
USERNAME_REQUIRED = 4035
|
49
|
+
ACL_UNKNOWN_ACCOUNT_ID = 4036
|
50
|
+
USER_PHONE_INVALID = 4037
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
data/lib/yext/api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yext-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CardTapp
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: memoist
|
@@ -246,6 +246,22 @@ files:
|
|
246
246
|
- lib/yext/api/concerns/rate_limits.rb
|
247
247
|
- lib/yext/api/engine.rb
|
248
248
|
- lib/yext/api/enumerations/add_request_status.rb
|
249
|
+
- lib/yext/api/enumerations/error_codes.rb
|
250
|
+
- lib/yext/api/enumerations/error_codes/agreements_errors.rb
|
251
|
+
- lib/yext/api/enumerations/error_codes/analytics_errors.rb
|
252
|
+
- lib/yext/api/enumerations/error_codes/customers_errros.rb
|
253
|
+
- lib/yext/api/enumerations/error_codes/ecl_errors.rb
|
254
|
+
- lib/yext/api/enumerations/error_codes/feedback_errors.rb
|
255
|
+
- lib/yext/api/enumerations/error_codes/general_errors.rb
|
256
|
+
- lib/yext/api/enumerations/error_codes/live_api_errors.rb
|
257
|
+
- lib/yext/api/enumerations/error_codes/locations_errors.rb
|
258
|
+
- lib/yext/api/enumerations/error_codes/optimizations_errors.rb
|
259
|
+
- lib/yext/api/enumerations/error_codes/publisher_suggestions_errors.rb
|
260
|
+
- lib/yext/api/enumerations/error_codes/reviews_errors.rb
|
261
|
+
- lib/yext/api/enumerations/error_codes/social_errors.rb
|
262
|
+
- lib/yext/api/enumerations/error_codes/subscriptions_errors.rb
|
263
|
+
- lib/yext/api/enumerations/error_codes/suppression_errors.rb
|
264
|
+
- lib/yext/api/enumerations/error_codes/users_errors.rb
|
249
265
|
- lib/yext/api/enumerations/location_type.rb
|
250
266
|
- lib/yext/api/enumerations/validation.rb
|
251
267
|
- lib/yext/api/knowledge_api.rb
|