UNPKG

spservices

Version:

Work with SharePoint's Web Services using jQuery

82 lines (69 loc) 2.23 kB
define([], function () { "use strict"; /** * Maintains a set of constants for SPServices. * * @namespace constants */ var constants = { // Version info VERSION: "@VERSION", // update it in package.json... build takes care of the rest // Simple strings spDelim: ";#", SLASH: "/", TXTColumnNotFound: "Column not found on page", // String constants // General SCHEMASharePoint: "http://schemas.microsoft.com/sharepoint", multiLookupPrefix: "MultiLookupPicker", multiLookupPrefix2013: "MultiLookup", // Dropdown Types dropdownType: { simple: "S", complex: "C", multiSelect: "M" }, // Known list field types - See: http://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.spfieldtype(v=office.15).aspx spListFieldTypes: [ "Integer", "Text", "Note", "DateTime", "Counter", "Choice", "Lookup", "Boolean", "Number", "Currency", "URL", // "Computed", // NEW // "Threading", // NEW // "Guid", // NEW "MultiChoice", // "GridChoice", // NEW "Calculated", "File", "Attachments", "User", "Recurrence", // Recurring event indicator (boolean) [0 | 1] // "CrossProjectLink", // NEW "ModStat", "ContentTypeId", // "PageSeparator", // NEW // "ThreadIndex", // NEW "WorkflowStatus", // NEW "AllDayEvent", // All day event indicator (boolean) [0 | 1] // "WorkflowEventType", // NEW // "Geolocation", // NEW // "OutcomeChoice", // NEW "RelatedItems", // Related Items in a Workflow Tasks list // Also seen "UserMulti", // Multiselect users "LookupMulti", // Multi-select lookup "datetime", // Calculated date/time result "float", // Calculated float "Calc" // General calculated ] }; return constants; });