Coverage for mindsdb / integrations / handlers / shopify_handler / models / staff_members.py: 0%

15 statements  

« prev     ^ index     » next       coverage.py v7.13.1, created at 2026-01-21 00:36 +0000

1from .common import AliasesEnum 

2 

3 

4class StaffMembers(AliasesEnum): 

5 """A class to represent a Shopify GraphQL staff member. 

6 Reference: https://shopify.dev/docs/api/admin-graphql/latest/objects/StaffMember 

7 Require `read_users` permission. Also the app must be a finance embedded app or installed on a Shopify Plus or Advanced store. 

8 """ 

9 

10 accountType = "accountType" 

11 active = "active" 

12 # avatar = "avatar" 

13 email = "email" 

14 exists = "exists" 

15 firstName = "firstName" 

16 id = "id" 

17 initials = "initials" 

18 isShopOwner = "isShopOwner" 

19 lastName = "lastName" 

20 locale = "locale" 

21 name = "name" 

22 phone = "phone" 

23 # privateData = "privateData" 

24 

25 

26columns = [ 

27 { 

28 "TABLE_NAME": "staff_members", 

29 "COLUMN_NAME": "accountType", 

30 "DATA_TYPE": "TEXT", 

31 "COLUMN_DESCRIPTION": "The type of account the staff member has.", 

32 "IS_NULLABLE": None, 

33 }, 

34 { 

35 "TABLE_NAME": "staff_members", 

36 "COLUMN_NAME": "active", 

37 "DATA_TYPE": "BOOL", 

38 "COLUMN_DESCRIPTION": "Whether the staff member is active.", 

39 "IS_NULLABLE": False, 

40 }, 

41 # { 

42 # "TABLE_NAME": "staff_members", 

43 # "COLUMN_NAME": "avatar", 

44 # "DATA_TYPE": "JSON", 

45 # "COLUMN_DESCRIPTION": "The image used as the staff member's avatar in the Shopify admin.", 

46 # "IS_NULLABLE": False 

47 # }, 

48 { 

49 "TABLE_NAME": "staff_members", 

50 "COLUMN_NAME": "email", 

51 "DATA_TYPE": "TEXT", 

52 "COLUMN_DESCRIPTION": "The staff member's email address.", 

53 "IS_NULLABLE": False, 

54 }, 

55 { 

56 "TABLE_NAME": "staff_members", 

57 "COLUMN_NAME": "exists", 

58 "DATA_TYPE": "BOOL", 

59 "COLUMN_DESCRIPTION": "Whether the staff member's account exists.", 

60 "IS_NULLABLE": False, 

61 }, 

62 { 

63 "TABLE_NAME": "staff_members", 

64 "COLUMN_NAME": "firstName", 

65 "DATA_TYPE": "TEXT", 

66 "COLUMN_DESCRIPTION": "The staff member's first name.", 

67 "IS_NULLABLE": None, 

68 }, 

69 { 

70 "TABLE_NAME": "staff_members", 

71 "COLUMN_NAME": "id", 

72 "DATA_TYPE": "TEXT", 

73 "COLUMN_DESCRIPTION": "A globally-unique ID.", 

74 "IS_NULLABLE": False, 

75 }, 

76 { 

77 "TABLE_NAME": "staff_members", 

78 "COLUMN_NAME": "initials", 

79 "DATA_TYPE": "JSON", 

80 "COLUMN_DESCRIPTION": "The staff member's initials, if available.", 

81 "IS_NULLABLE": None, 

82 }, 

83 { 

84 "TABLE_NAME": "staff_members", 

85 "COLUMN_NAME": "isShopOwner", 

86 "DATA_TYPE": "BOOL", 

87 "COLUMN_DESCRIPTION": "Whether the staff member is the shop owner.", 

88 "IS_NULLABLE": False, 

89 }, 

90 { 

91 "TABLE_NAME": "staff_members", 

92 "COLUMN_NAME": "lastName", 

93 "DATA_TYPE": "TEXT", 

94 "COLUMN_DESCRIPTION": "The staff member's last name.", 

95 "IS_NULLABLE": None, 

96 }, 

97 { 

98 "TABLE_NAME": "staff_members", 

99 "COLUMN_NAME": "locale", 

100 "DATA_TYPE": "TEXT", 

101 "COLUMN_DESCRIPTION": "The staff member's preferred locale. Locale values use the format language or language-COUNTRY, where language is a two-letter language code, and COUNTRY is a two-letter country code. For example: en or en-US", 

102 "IS_NULLABLE": False, 

103 }, 

104 { 

105 "TABLE_NAME": "staff_members", 

106 "COLUMN_NAME": "name", 

107 "DATA_TYPE": "TEXT", 

108 "COLUMN_DESCRIPTION": "The staff member's full name.", 

109 "IS_NULLABLE": False, 

110 }, 

111 { 

112 "TABLE_NAME": "staff_members", 

113 "COLUMN_NAME": "phone", 

114 "DATA_TYPE": "TEXT", 

115 "COLUMN_DESCRIPTION": "The staff member's phone number.", 

116 "IS_NULLABLE": None, 

117 }, 

118 # { 

119 # "TABLE_NAME": "staff_members", 

120 # "COLUMN_NAME": "privateData", 

121 # "DATA_TYPE": "JSON", 

122 # "COLUMN_DESCRIPTION": "The data used to customize the Shopify admin experience for the staff member.", 

123 # "IS_NULLABLE": False 

124 # } 

125]